diff options
author | Monty <monty@mariadb.org> | 2021-04-02 22:00:36 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2021-04-06 14:57:22 +0300 |
commit | 81258f14323e1d1ad0203bae93bc55a30d47c1b3 (patch) | |
tree | 2f7db5363539512ed8f9d5296fe4653731ad1bc0 /sql/sql_alter.cc | |
parent | 7f75acc05c54bb4a2ffd0c38c7171e27c271bdb2 (diff) | |
download | mariadb-git-81258f14323e1d1ad0203bae93bc55a30d47c1b3.tar.gz |
MDEV-17913 Encrypted transactional Aria tables remain corrupt after crash recovery, automatic repairment does not work
This was because of a wrong test in encryption code that wrote random
numbers over the LSN for pages for transactional Aria tables during repair.
The effect was that after an ALTER TABLE ENABLE KEYS of a encrypted
recovery of the tables would not work.
Fixed by changing testing of !share->now_transactional to
!share->base.born_transactional.
Other things:
- Extended Aria check_table() to check for wrong (= too big) LSN numbers.
- If check_table() failed just because of wrong LSN or TRN numbers,
a following repair table will just do a zerofill which is much faster.
- Limit number of LSN errors in one check table to MAX_LSN_ERROR (10).
- Removed old obsolete test of 'if (error_count & 2)'. Changed error_count
and warning_count from bits to numbers of errors/warnings as this is
more useful.
Diffstat (limited to 'sql/sql_alter.cc')
0 files changed, 0 insertions, 0 deletions