Browse Source

MDEV-6443: Server crashed with assertaion failure in file ha_innodb.cc

line 8473

In case InnoDB index is not found, print the MySQL and InnoDB index
name we were trying to find and all MySQL and InnoDB index names there
is for this table.
pull/57/head
Jan Lindström 12 years ago
parent
commit
ef67c3a239
  1. 15
      storage/innobase/handler/ha_innodb.cc
  2. 16
      storage/xtradb/handler/ha_innodb.cc

15
storage/innobase/handler/ha_innodb.cc

@ -7969,6 +7969,21 @@ ha_innobase::innobase_get_index(
keynr, key ? key->name : "NULL",
index->name,
prebuilt->table->name);
for(ulint i=0; i < table->s->keys; i++) {
index = innobase_index_lookup(share, i);
key = table->key_info + keynr;
if (index) {
fprintf(stderr, "InnoDB: [Note] Index for key no %u"
" mysql name %s , InnoDB name %s for table %s\n",
keynr, key ? key->name : "NULL",
index->name,
prebuilt->table->name);
}
}
}
ut_a(ut_strcmp(index->name, key->name) == 0);

16
storage/xtradb/handler/ha_innodb.cc

@ -8480,6 +8480,20 @@ ha_innobase::innobase_get_index(
keynr, key ? key->name : "NULL",
index->name,
prebuilt->table->name);
for(ulint i=0; i < table->s->keys; i++) {
index = innobase_index_lookup(share, i);
key = table->key_info + keynr;
if (index) {
fprintf(stderr, "InnoDB: [Note] Index for key no %u"
" mysql name %s , InnoDB name %s for table %s\n",
keynr, key ? key->name : "NULL",
index->name,
prebuilt->table->name);
}
}
}
ut_a(ut_strcmp(index->name, key->name) == 0);
@ -18490,7 +18504,7 @@ ib_senderrf(
va_start(args, code);
myf l;
myf l=0;
switch(level) {
case IB_LOG_LEVEL_INFO:

Loading…
Cancel
Save