diff --git a/db_stress_tool/db_stress_test_base.cc b/db_stress_tool/db_stress_test_base.cc index 2ec759586..a1d9b08b0 100644 --- a/db_stress_tool/db_stress_test_base.cc +++ b/db_stress_tool/db_stress_test_base.cc @@ -2792,8 +2792,10 @@ void StressTest::Reopen(ThreadState* thread) { } assert(s.ok()); } + assert(txn_db_ == nullptr || db_ == txn_db_); delete db_; db_ = nullptr; + txn_db_ = nullptr; num_times_reopened_++; auto now = clock_->NowMicros();