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

MDEV-6443: Server crashed with assertaion failure in file

ha_innodb.cc line 8473

If index is not found from InnoDB make sure we print what we
were trying to find and all mysql and InnoDB index names there
is for this table.
parent 4ad2abc5
......@@ -7963,6 +7963,14 @@ ha_innobase::innobase_get_index(
index = innobase_index_lookup(share, keynr);
if (index) {
if (!key || ut_strcmp(index->name, key->name) != 0) {
fprintf(stderr, "InnoDB: [Error] 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);
} else {
/* Can't find index with keynr in the translation
......
......@@ -8473,6 +8473,15 @@ ha_innobase::innobase_get_index(
index = innobase_index_lookup(share, keynr);
if (index) {
if (!key || ut_strcmp(index->name, key->name) != 0) {
fprintf(stderr, "InnoDB: [Error] 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);
} else {
/* Can't find index with keynr in the translation
......
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