Commit 7ee98d4f authored by Sunny Bains's avatar Sunny Bains

Bug# 56982 Assertion Failure from ha_innobase::innobase_peek_autoinc() when auto_inc > 0

Print an error message to stderr an get rid of the assertion.

Approved by: Jimmy Yang (over IM)
parent 81c78fb6
......@@ -9389,7 +9389,11 @@ ha_innobase::innobase_peek_autoinc(void)
auto_inc = dict_table_autoinc_read(innodb_table);
ut_a(auto_inc > 0);
if (auto_inc == 0) {
ut_print_timestamp(stderr);
fprintf(stderr, " InnoDB: AUTOINC next value generation "
"is disabled for '%s'\n", innodb_table->name);
}
dict_table_autoinc_unlock(innodb_table);
......
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