summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-06-09 10:57:28 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-06-09 10:57:28 +0300
commit98293130c34cfd39bf2e8c904923abe3942d23be (patch)
tree51951e48ff66afb9e991d62a7cde439e6d0dde69 /sql
parent2cd1edfc2176649cda412b2ff4f1075ad23448ba (diff)
downloadmariadb-git-98293130c34cfd39bf2e8c904923abe3942d23be.tar.gz
MDEV-28779: ALTER TABLE IMPORT TABLESPACE corrupts an encrypted table
PageConverter::update_header(): Remove an unnecessary write. The field that was originally called FIL_PAGE_FILE_FLUSH_LSN only made sense for the first page of the system tablespace (initially, for the first page of each file of the system tablespace). It never had any meaning for .ibd files, and it lost its original meaning in MariaDB Server 10.8.1 when commit b07920b634f455c39e3650c6163bec2a8ce0ffe0 (MDEV-27199) removed the ability to start without ib_logfile0. If the most significant 32 bits of the LSN are nonzero, this unnecessary write would write the wrong encryption key identifier to the page. The first page of any file is never encrypted, so normally those bytes should be 0 for any .ibd file.
Diffstat (limited to 'sql')
0 files changed, 0 insertions, 0 deletions