mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
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:
parent
5efd9b4f1d
commit
34b889e10f
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue