修复stop节点时core问题
This commit is contained in:
parent
0e0bd1c6e1
commit
45bd4734f7
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user