add destroy thread for kill 15

This commit is contained in:
zhjc1124
2023-06-01 10:12:00 +00:00
committed by ob-robot
parent 6788f0a210
commit 58ab2d88cb
21 changed files with 231 additions and 43 deletions

View File

@ -259,19 +259,28 @@ ObTableStoreStatMgr::~ObTableStoreStatMgr()
destroy();
}
void ObTableStoreStatMgr::destroy()
void ObTableStoreStatMgr::stop()
{
TG_STOP(lib::TGDefIDs::TableStatRpt);
}
void ObTableStoreStatMgr::wait()
{
TG_WAIT(lib::TGDefIDs::TableStatRpt);
report_task_.destroy();
report_cursor_ = 0;
pending_cursor_ = 0;
lru_head_ = NULL;
lru_tail_ = NULL;
cur_cnt_ = 0;
limit_cnt_ = 0;
quick_map_.destroy();
is_inited_ = false;
}
void ObTableStoreStatMgr::destroy()
{
if(is_inited_){
is_inited_ = false;
TG_DESTROY(lib::TGDefIDs::TableStatRpt);
report_task_.destroy();
report_cursor_ = 0;
pending_cursor_ = 0;
lru_head_ = NULL;
lru_tail_ = NULL;
cur_cnt_ = 0;
limit_cnt_ = 0;
quick_map_.destroy();
}
}
int ObTableStoreStatMgr::init(const int64_t limit_cnt)