This commit is contained in:
Pradeep Chhetri 2023-11-07 14:06:55 +08:00
parent 0aaaf320b6
commit 201a7b8d5f

View File

@ -1089,7 +1089,8 @@ bool KeeperServer::requestLeader()
bool KeeperServer::yieldLeadership()
{
return isLeader() && raft_instance->yield_leadership();
if (isLeader())
raft_instance->yield_leadership();
}
void KeeperServer::recalculateStorageStats()