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)
This commit is contained in:
Sunny Bains 2010-10-11 11:26:49 +11:00
parent 5efd9b4f1d
commit 34b889e10f

View file

@ -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);