[MDEV-23304] Insert into TEMPORARY TABLE fails to invoke mtr_t::set_modified() Created: 2020-07-27  Updated: 2020-07-28  Resolved: 2020-07-28

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.5.2
Fix Version/s: 10.5.5

Type: Bug Priority: Major
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: corruption, regression, temporary

Issue Links:
Blocks
blocks MDEV-22110 InnoDB unnecessarily writes unmodifie... Closed
Problem/Incident
is caused by MDEV-21724 Optimize page_cur_insert_rec_low() re... Closed

 Description   

In MDEV-21724 or possibly already in MDEV-12353 a bug was introduced to the handling of temporary tables.

Whether or not redo log will be written, mtr_t::set_modified() must be invoked to register any changes to a page. In page_cur_insert_rec_low() we were violating this constraint when inserting into temporary tables.



 Comments   
Comment by Marko Mäkelä [ 2020-07-27 ]

I encountered this bug when testing the fix of MDEV-22110. It is possible but not verified that this bug was masked by the absence of that performance bug fix.

Generated at Thu Feb 08 09:21:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.