diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2021-11-02 11:26:35 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2021-11-02 11:26:35 +0300 |
commit | 8ce5635a3eb2c744136c9f19d49297406db94d46 (patch) | |
tree | 2755eda85e542c10d32cf3c8468aa7f34efb0d64 /mysql-test/suite/percona/percona_processlist_row_stats.test | |
parent | d0b611a76d91a5b6dbbc8fab792d7daaaaa862f5 (diff) | |
download | mariadb-git-8ce5635a3eb2c744136c9f19d49297406db94d46.tar.gz |
MDEV-22284 Aria table key read crash because wrong index usedbb-10.2-midenok2
When restoring lastinx last_key.keyinfo must be updated as well. The
good example is in _ma_check_index().
The point of failure is extra(HA_EXTRA_NO_KEYREAD) in
ha_maria::get_auto_increment():
1. extra(HA_EXTRA_KEYREAD) saves lastinx;
2. maria_rkey() changes index, so the lastinx and last_key.keyinfo;
3. extra(HA_EXTRA_NO_KEYREAD) restores lastinx but not
last_key.keyinfo.
So we have discrepancy between lastinx and last_key.keyinfo after 3.
Diffstat (limited to 'mysql-test/suite/percona/percona_processlist_row_stats.test')
0 files changed, 0 insertions, 0 deletions