MDEV-32291 memory leak in innodb.insert_into_empty test

- This failure happens due to commit bf3b787e (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.
parent 11c69177
......@@ -1804,6 +1804,7 @@ int ha_commit_trans(THD *thd, bool all)
(void) trans_rollback_stmt(thd);
goto err;
}
trt.table->file->extra(HA_EXTRA_RESET_STATE);
// Here, the call will not commit inside InnoDB. It is only working
// around closing thd->transaction.stmt open by TR_table::open().
if (all)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment