change the order of destructor

This commit is contained in:
obdev
2023-08-28 08:10:25 +00:00
committed by ob-robot
parent 53e98c7750
commit 1d754736e6

View File

@ -672,10 +672,6 @@ void ObServer::destroy()
TG_DESTROY(lib::TGDefIDs::DiskUseReport);
FLOG_INFO("disk usage report task destroyed");
FLOG_INFO("begin to destroy ob server block mgr");
OB_SERVER_BLOCK_MGR.destroy();
FLOG_INFO("ob server block mgr destroyed");
FLOG_INFO("begin to destroy store cache");
OB_STORE_CACHE.destroy();
FLOG_INFO("store cache destroyed");
@ -744,6 +740,10 @@ void ObServer::destroy()
ObServerCheckpointSlogHandler::get_instance().destroy();
FLOG_INFO("server checkpoint slog handler destroyed");
FLOG_INFO("begin to destroy ob server block mgr");
OB_SERVER_BLOCK_MGR.destroy();
FLOG_INFO("ob server block mgr destroyed");
FLOG_INFO("begin to destroy server startup task handler");
SERVER_STARTUP_TASK_HANDLER.destroy();
FLOG_INFO("server startup task handler destroyed");