Commit f7a5890b authored by Yoni Fogel's avatar Yoni Fogel

[t:5123] Fix memory leak in test

git-svn-id: file:///svn/toku/tokudb@44899 c7de825b-a66e-492c-adef-691d508d4ae1
parent fb72102e
...@@ -21,19 +21,14 @@ static void test_5123(void) { ...@@ -21,19 +21,14 @@ static void test_5123(void) {
int r; int r;
TOKUTXN txn[3]; r = toku_log_xbegin(logger, NULL, false, (TXNID) 1, TXNID_NONE);
r = toku_txn_begin_txn((DB_TXN*)NULL, (TOKUTXN)0, &txn[0], logger, TXN_SNAPSHOT_ROOT);
CKERR(r); CKERR(r);
r = toku_txn_begin_txn((DB_TXN*)NULL, (TOKUTXN)0, &txn[1], logger, TXN_SNAPSHOT_ROOT); r = toku_log_xbegin(logger, NULL, false, (TXNID) 3, TXNID_NONE);
CKERR(r); CKERR(r);
r = toku_txn_begin_txn((DB_TXN*)NULL, (TOKUTXN)0, &txn[2], logger, TXN_SNAPSHOT_ROOT); r = toku_log_xbegin(logger, NULL, false, (TXNID) 2, TXNID_NONE);
CKERR(r); CKERR(r);
toku_maybe_log_begin_txn_for_write_operation(txn[0]); r = toku_log_xcommit(logger, NULL, false, NULL, (TXNID) 2);
toku_maybe_log_begin_txn_for_write_operation(txn[2]);
toku_maybe_log_begin_txn_for_write_operation(txn[1]);
r = toku_txn_commit_txn(txn[1], FALSE, NULL, NULL);
CKERR(r); CKERR(r);
r = toku_logger_close_rollback(logger, false); r = toku_logger_close_rollback(logger, false);
......
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