diff options
author | Shunsuke Tokunaga <tkngsnsk313320@gmail.com> | 2022-06-16 13:28:24 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 13:28:24 +0900 |
commit | c4f65d8fed16370deae85115490fc0c06da2ce84 (patch) | |
tree | c61e321ea34d38fd875a4c0e4eb5ec5388b9b7c6 /mysql-test/suite/innodb/t/stats_persistent.test | |
parent | f31e935c3e0649d36008ab440cd87cb7ff474bb3 (diff) | |
download | mariadb-git-c4f65d8fed16370deae85115490fc0c06da2ce84.tar.gz |
MDEV-21027 Assertion `part_share->auto_inc_initialized || !can_use_for_auto_inc_init()' failed in ha_partition::set_auto_increment_if_higher
ha_partition::set_auto_increment_if_higher expects
part_share->auto_inc_initialized is true or can_use_for_auto_inc_init()
is false (but as the comment of this method says, it returns false
only if we use Spider engine with DROP TABLE or ALTER TABLE query).
However, part_share->auto_inc_initialized becomes true only after all
partitions are opened (since 6dce6aecebe6ef78a14cb5c5c5daa8a355551e40).
Therefore, I added a conditional expression in order to read all
partitions when we execute REPLACE on a table that has an
AUTO_INCREMENT column.
Reviewed by: Nayuta Yanagisawa
Reviewed by: Alexey Botchkov
Diffstat (limited to 'mysql-test/suite/innodb/t/stats_persistent.test')
0 files changed, 0 insertions, 0 deletions