logsdb: temporarily disable leader election

This commit is contained in:
Miroslav Crnic
2024-10-11 15:19:03 +00:00
parent d1936caf6b
commit a6a6e8df12
+2 -1
View File
@@ -710,7 +710,8 @@ public:
_electionState->lastReleased = _metadata.getLastReleased();
_leaderLastActive = now;
if (unlikely(_noReplication)) {
//if (unlikely(_noReplication)) {
{
LOG_INFO(_env,"ForceLeader set, skipping to confirming leader phase");
_electionState->requestIds.fill(ReqResp::CONFIRMED_REQ_ID);
_tryBecomeLeader();