mariadb/mysql-test/suite/innodb
Marko Mäkelä cd79f10211 MDEV-31441 BLOB corruption on UPDATE of PRIMARY KEY with FOREIGN KEY
row_upd_clust_rec_by_insert(): If we are resuming from a lock wait,
reset the 'disowned' flag of the BLOB pointers in 'entry' that we
copied from 'rec' on which we had invoked btr_cur_disown_inherited_fields()
before the lock wait started. In this way, the inserted record with
the updated PRIMARY KEY value will have the BLOB ownership associated
with itself, like it is supposed to be.

Note: If the lock wait had been aborted, then rollback would have
invoked btr_cur_unmark_extern_fields() and no corruption would be possible.

Reviewed by: Vladislav Lesin
Tested by: Matthias Leich
2023-11-29 18:57:57 +02:00
..
include Fix mariabackup InnoDB recovered binlog position on server upgrade 2023-11-03 09:13:51 +01:00
r MDEV-31441 BLOB corruption on UPDATE of PRIMARY KEY with FOREIGN KEY 2023-11-29 18:57:57 +02:00
t MDEV-31441 BLOB corruption on UPDATE of PRIMARY KEY with FOREIGN KEY 2023-11-29 18:57:57 +02:00
disabled.def MDEV-23339 innodb_force_recovery=2 may still abort the rollback of recovered transactions 2020-07-30 09:24:36 +03:00