[CP] fix double destroy && force dump dag status in destroy

This commit is contained in:
a1iive
2023-09-20 14:42:01 +00:00
committed by ob-robot
parent 055b14bc3a
commit a4cf5ecbd2
6 changed files with 25 additions and 5 deletions

View File

@ -533,6 +533,9 @@ int ObTenantTabletStatMgr::init(const int64_t tenant_id)
} else {
is_inited_ = true;
}
if (!is_inited_) {
reset();
}
return ret;
}
@ -558,6 +561,13 @@ void ObTenantTabletStatMgr::stop()
}
void ObTenantTabletStatMgr::destroy()
{
if (IS_INIT) {
reset();
}
}
void ObTenantTabletStatMgr::reset()
{
stop();
wait();