mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
fix
This commit is contained in:
parent
201a7b8d5f
commit
4e8ff997c0
@ -584,7 +584,8 @@ String FeatureFlagsCommand::run()
|
||||
|
||||
String YieldLeadershipCommand::run()
|
||||
{
|
||||
return keeper_dispatcher.yieldLeadership() ? "Sent yield leadership request to leader." : "Failed to send yield leadership request to leader.";
|
||||
keeper_dispatcher.yieldLeadership();
|
||||
return "Sent yield leadership request to leader.";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -238,7 +238,7 @@ public:
|
||||
}
|
||||
|
||||
/// Yield leadership and become follower.
|
||||
bool yieldLeadership()
|
||||
void yieldLeadership()
|
||||
{
|
||||
return server->yieldLeadership();
|
||||
}
|
||||
|
@ -1087,7 +1087,7 @@ bool KeeperServer::requestLeader()
|
||||
return isLeader() || raft_instance->request_leadership();
|
||||
}
|
||||
|
||||
bool KeeperServer::yieldLeadership()
|
||||
void KeeperServer::yieldLeadership()
|
||||
{
|
||||
if (isLeader())
|
||||
raft_instance->yield_leadership();
|
||||
|
@ -141,7 +141,7 @@ public:
|
||||
|
||||
bool requestLeader();
|
||||
|
||||
bool yieldLeadership();
|
||||
void yieldLeadership();
|
||||
|
||||
void recalculateStorageStats();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user