Skip to content

Commit

Permalink
Fix valgrind error.
Browse files Browse the repository at this point in the history
Do not accessing trx->mysql_log_file_name
after transaction end.
  • Loading branch information
vaintroub committed Sep 22, 2016
1 parent 630035b commit c46304f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/innobase/trx/trx0trx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ trx_free(trx_t*& trx)
assert_trx_is_free(trx);

trx->mysql_thd = 0;
trx->mysql_log_file_name = 0;

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

0 comments on commit c46304f

Please sign in to comment.