fix reload description

This commit is contained in:
lin
2023-03-23 15:16:08 +08:00
parent 6e777b4ac8
commit 7ae55bde03

View File

@@ -148,7 +148,7 @@ public final class ReloadConfig {
}
if (!reloadResult) {
packetResult.setSuccess(false);
packetResult.setErrorMsg("Reload config failure.The reason is reload interruputed by others,config should be reload");
packetResult.setErrorMsg("Reload Failure.The reason is reload interruputed by others,config should be reload");
packetResult.setErrorCode(ErrorCode.ER_RELOAD_INTERRUPUTED);
return;
}
@@ -202,7 +202,7 @@ public final class ReloadConfig {
try {
if (!ReloadManager.startReload(TRIGGER_TYPE_COMMAND, confStatus)) {
packetResult.setSuccess(false);
packetResult.setErrorMsg("Reload config failure.The reason is reload status error ,other client or cluster may in reload");
packetResult.setErrorMsg("Reload Failure.The reason is reload status error ,other client or cluster may in reload");
packetResult.setErrorCode(ErrorCode.ER_YES);
return;
}
@@ -218,7 +218,7 @@ public final class ReloadConfig {
return;
} else if (!reloadResult) {
packetResult.setSuccess(false);
packetResult.setErrorMsg("Reload config failure.The reason is reload interruputed by others,metadata should be reload");
packetResult.setErrorMsg("Reload Failure.The reason is reload interruputed by others,metadata should be reload");
packetResult.setErrorCode(ErrorCode.ER_RELOAD_INTERRUPUTED);
}
} finally {
@@ -229,7 +229,7 @@ public final class ReloadConfig {
private static void writeErrorResult(ManagerService c, String errorMsg) {
String sb = "Reload config failure.The reason is " + errorMsg;
String sb = "Reload Failure.The reason is " + errorMsg;
LOGGER.warn(sb);
c.writeErrMessage(ErrorCode.ER_YES, sb);
}