Commit ef67c3a2 authored by Jan Lindström's avatar Jan Lindström

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.
parent fe3859cc
......@@ -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);
......
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment