1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

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.
This commit is contained in:
Jan Lindström
2014-07-22 13:08:32 +03:00
parent 4ad2abc55b
commit fe3859cc9d
2 changed files with 17 additions and 0 deletions

View File

@@ -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

View File

@@ -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