Fix incorrect error messages printed by stop_server/stop_zone

This commit is contained in:
obdev
2023-02-13 10:44:46 +00:00
committed by ob-robot
parent 40590109cf
commit 1cff40eef7
2 changed files with 12 additions and 5 deletions

View File

@ -7212,7 +7212,7 @@ int ObRootService::stop_server(const obrpc::ObAdminServerArg &arg)
if (OB_FAIL(check_can_stop(zone, arg.servers_, false /*is_stop_zone*/))) {
LOG_WARN("fail to check can stop", KR(ret), K(zone), K(arg));
if (OB_OP_NOT_ALLOW == ret) {
LOG_USER_ERROR(OB_OP_NOT_ALLOW, "Stop all server in primary region is disabled");
LOG_USER_ERROR(OB_OP_NOT_ALLOW, "Stop all servers in primary region is");
}
}
} else {