[BUF.FIX] fix tmp file coredump while observer exited.

This commit is contained in:
Tyshawn
2023-02-24 17:10:30 +00:00
committed by ob-robot
parent ddaf7a292b
commit b1ccc6eb62

View File

@ -534,6 +534,10 @@ void ObServer::destroy()
disk_usage_report_task_.destroy();
FLOG_INFO("tenant disk usage report task destroyed");
FLOG_INFO("begin to destroy tmp file manager");
ObTmpFileManager::get_instance().destroy();
FLOG_INFO("tmp file manager destroyed");
FLOG_INFO("begin to destroy ob server block mgr");
OB_SERVER_BLOCK_MGR.destroy();
FLOG_INFO("ob server block mgr destroyed");
@ -542,10 +546,6 @@ void ObServer::destroy()
OB_STORE_CACHE.destroy();
FLOG_INFO("store cache destroyed");
FLOG_INFO("begin to destroy tmp file manager");
ObTmpFileManager::get_instance().destroy();
FLOG_INFO("tmp file manager destroyed");
FLOG_INFO("begin to destroy ObDagWarningHistoryManager");
ObDagWarningHistoryManager::get_instance().destroy();
FLOG_INFO("ObDagWarningHistoryManager destroyed");