From be97dbb15c1bb59f54916afac62b7abf39e18d02 Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Fri, 22 Sep 2017 15:24:42 -0700 Subject: [PATCH] Fix WritePreparedTransactionTest::SeqAdvanceTest ASAN failure Summary: Closes https://github.com/facebook/rocksdb/pull/2922 Differential Revision: D5895310 Pulled By: yiwu-arbug fbshipit-source-id: 52c635a25d22478ec1eca49b6817551202babac2 --- utilities/transactions/write_prepared_transaction_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/utilities/transactions/write_prepared_transaction_test.cc b/utilities/transactions/write_prepared_transaction_test.cc index 66ba5f6ce..044133855 100644 --- a/utilities/transactions/write_prepared_transaction_test.cc +++ b/utilities/transactions/write_prepared_transaction_test.cc @@ -621,6 +621,7 @@ TEST_P(WritePreparedTransactionTest, SeqAdvanceTest) { ASSERT_OK(s); seq = db_impl->GetLatestSequenceNumber(); ASSERT_EQ(exp_seq, seq); + delete txn; // Commit without prepare. It shoudl write to DB without a commit marker. txn = db->BeginTransaction(write_options, txn_options);