summaryrefslogtreecommitdiff
path: root/innobase/dict/dict0load.c
diff options
context:
space:
mode:
Diffstat (limited to 'innobase/dict/dict0load.c')
-rw-r--r--innobase/dict/dict0load.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/innobase/dict/dict0load.c b/innobase/dict/dict0load.c
index d803d28963d..53ba09616f7 100644
--- a/innobase/dict/dict0load.c
+++ b/innobase/dict/dict0load.c
@@ -688,7 +688,16 @@ dict_load_indexes(
dict_load_fields(table, index, heap);
- dict_index_add_to_cache(table, index);
+ if (index->type & DICT_CLUSTERED == 0
+ && NULL == dict_table_get_first_index(table)) {
+
+ fprintf(stderr,
+ "InnoDB: Error: trying to load index %s for table %s\n"
+ "InnoDB: but the first index was not clustered\n",
+ index->name, table->name);
+ } else {
+ dict_index_add_to_cache(table, index);
+ }
}
btr_pcur_move_to_next_user_rec(&pcur, &mtr);