Commit 2cf5070f authored by marko's avatar marko

branches/zip: ha_innobase::change_active_index(): Write to the error log

when the index could not be found.
parent e0009cd4
......@@ -4310,7 +4310,9 @@ ha_innobase::change_active_index(
prebuilt->index = innobase_get_index(keynr);
if (!prebuilt->index) {
if (UNIV_UNLIKELY(!prebuilt->index)) {
sql_print_warning("InnoDB: change_active_index(%u) failed",
keynr);
DBUG_RETURN(1);
}
......
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