Update KeeperTCPHandler.cpp

This commit is contained in:
alesapin 2021-10-30 16:02:05 +03:00 committed by GitHub
parent 40bffcec3a
commit 30ab4b3a7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,7 +307,7 @@ void KeeperTCPHandler::runImpl()
else else
{ {
String reason; String reason;
if (!keeper_dispatcher->checkInit() && !keeper_dispathcer->hasLeader()) if (!keeper_dispatcher->checkInit() && !keeper_dispatcher->hasLeader())
reason = "server is not initialized yet and no alive leader exists"; reason = "server is not initialized yet and no alive leader exists";
else if (!keeper_dispatcher->checkInit()) else if (!keeper_dispatcher->checkInit())
reason = "server is not initialized yet"; reason = "server is not initialized yet";