From 45bd4734f7f969eeb30b2def2763fac93843c62f Mon Sep 17 00:00:00 2001 From: liuzhanfeng2 Date: Mon, 29 Apr 2024 19:36:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dstop=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E6=97=B6core=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cm_agent/cma_instance_management.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cm_agent/cma_instance_management.cpp b/src/cm_agent/cma_instance_management.cpp index 6942ac2..8729968 100644 --- a/src/cm_agent/cma_instance_management.cpp +++ b/src/cm_agent/cma_instance_management.cpp @@ -1391,6 +1391,12 @@ static void normal_shutdown_nodes(void) NormalShutdownAllDatanode(); } + /* resource */ + if (IsCusResExistLocal()) { + write_runlog(LOG, "normal_shutdown_nodes, %u resource will be stopped.\n", GetLocalResConfCount()); + StopAllResInst(); + } + /* cm_server */ if (g_currentNode->cmServerLevel == 1) { write_runlog(LOG, "cm_server normal shutdown, datapath: %s.\n", g_currentNode->cmDataPath); @@ -1402,12 +1408,6 @@ static void normal_shutdown_nodes(void) write_runlog(LOG, "gtm normal shutdown, path: %s.\n", g_currentNode->gtmLocalDataPath); fast_stop_one_instance(g_currentNode->gtmLocalDataPath, INSTANCE_GTM); } - - /* resource */ - if (IsCusResExistLocal()) { - write_runlog(LOG, "normal_shutdown_nodes, %u resource will be stopped.\n", GetLocalResConfCount()); - StopAllResInst(); - } } static void ShutdownOneDatanode(const dataNodeInfo *dnInfo)