make sure all meta released when the observer exits

This commit is contained in:
windye
2023-07-18 08:42:18 +00:00
committed by ob-robot
parent 928f831487
commit 9b0e6cd960
11 changed files with 183 additions and 164 deletions

View File

@ -141,12 +141,15 @@ protected:
virtual void TearDown() override
{
ctx_mt_mgr_->reset();
t3m_.destroy();
ls_tx_ctx_mgr_.reset();
delete mt_mgr_;
mt_mgr_ = NULL;
ctx_mt_mgr_ = NULL;
bool all_table_cleaned = false; // no use
ASSERT_EQ(OB_SUCCESS, t3m_.gc_tables_in_queue(all_table_cleaned));
t3m_.destroy();
ASSERT_EQ(0, ref_count_);
tenant_base_.destroy();