Skip to content

Commit 213b916

Browse files
MDEV-32291 memory leak in innodb.insert_into_empty test
- This failure happens due to commit bf3b787 (MDEV-31835). InnoDB fails to apply buffered insert operation for transaction_registry during commit operation. To avoid this, ha_commit_trans() should call extra() with HA_EXTRA_RESET_STATE to apply bulk buffered insert operation.
1 parent 11c6917 commit 213b916

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/handler.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,6 +1804,7 @@ int ha_commit_trans(THD *thd, bool all)
18041804
(void) trans_rollback_stmt(thd);
18051805
goto err;
18061806
}
1807+
trt.table->file->extra(HA_EXTRA_RESET_STATE);
18071808
// Here, the call will not commit inside InnoDB. It is only working
18081809
// around closing thd->transaction.stmt open by TR_table::open().
18091810
if (all)

0 commit comments

Comments
 (0)