Skip to content

Commit c46304f

Browse files
committed
Fix valgrind error.
Do not accessing trx->mysql_log_file_name after transaction end.
1 parent 630035b commit c46304f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/innobase/trx/trx0trx.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ trx_free(trx_t*& trx)
505505
assert_trx_is_free(trx);
506506

507507
trx->mysql_thd = 0;
508+
trx->mysql_log_file_name = 0;
508509

509510
// FIXME: We need to avoid this heap free/alloc for each commit.
510511
if (trx->autoinc_locks != NULL) {

0 commit comments

Comments
 (0)