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:
@@ -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
|
||||
|
Reference in New Issue
Block a user