Commit 44fce0a4 authored by marko's avatar marko

branches/zip: ha_innobase::change_active_index(): When the history is

missing, report it to the client, not to the error log.
parent 74d36486
...@@ -5241,8 +5241,10 @@ ha_innobase::change_active_index( ...@@ -5241,8 +5241,10 @@ ha_innobase::change_active_index(
prebuilt->index); prebuilt->index);
if (UNIV_UNLIKELY(!prebuilt->index_usable)) { if (UNIV_UNLIKELY(!prebuilt->index_usable)) {
sql_print_warning("InnoDB: insufficient history for index %u", push_warning_printf(user_thd, MYSQL_ERROR::WARN_LEVEL_WARN,
keynr); HA_ERR_TABLE_DEF_CHANGED,
"InnoDB: insufficient history for index %u",
keynr);
/* The caller seems to ignore this. Thus, we must check /* The caller seems to ignore this. Thus, we must check
this again in row_search_for_mysql(). */ this again in row_search_for_mysql(). */
DBUG_RETURN(2); DBUG_RETURN(2);
......
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