[kill -15][BEFORE_DESTROY]add stop and wait thread

This commit is contained in:
zhjc1124
2023-07-11 11:18:22 +00:00
committed by ob-robot
parent 47a0ba9293
commit 9e3fa0652d
5 changed files with 36 additions and 9 deletions

View File

@ -111,6 +111,7 @@ int ObLocalityManager::stop()
STORAGE_LOG(ERROR, "locality manager not inited, cannot stop.", K(ret));
} else {
TG_STOP(lib::TGDefIDs::LocalityReload);
refresh_locality_task_queue_.stop();
}
return ret;
}
@ -119,6 +120,7 @@ int ObLocalityManager::wait()
{
int ret = OB_SUCCESS;
TG_WAIT(lib::TGDefIDs::LocalityReload);
refresh_locality_task_queue_.wait();
return ret;
}