Skip to content

Commit baefecd

Browse files
committed
tarsAdminRegistry support tarsgo gracefull patch
1 parent 879351d commit baefecd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

AdminRegistryServer/ExecuteTask.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,10 @@ EMTaskItemStatus TaskList::graceRestart(const TaskItemReq &req, string &log)
177177
{
178178
vector<ServerDescriptor> server;
179179
server = DBPROXY->getServers(req.application, req.serverName, req.nodeName, true);
180-
if (server.size() != 0)
180+
if (server.size() == 0)
181181
{
182-
// TLOGERROR("TaskList::graceRestartServer error: server is not tars go, grace restart command is not allowed" << endl);
182+
log = "no servers";
183+
TLOGERROR("TaskList::graceRestartServer no servers" << endl);
183184
return EM_I_FAILED;
184185
}
185186
ret = _adminPrx->notifyServer_inner(req.application, req.serverName, req.nodeName, "tars.gracerestart",log);

0 commit comments

Comments
 (0)