mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
fix
This commit is contained in:
parent
0aaaf320b6
commit
201a7b8d5f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user