Skip to content

Commit

Permalink
One more place we need to update the priority
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerkaraszewski committed Nov 12, 2024
1 parent 0c8a178 commit 037d496
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sqlitecluster/SQLiteNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ bool SQLiteNode::update() {
// If no peers, we're the leader, unless we're shutting down.
if (_peerList.empty()) {
SHMMM("No peers configured, jumping to LEADING");
_priority = _originalPriority;
_changeState(SQLiteNodeState::LEADING);

// Run `update` again immediately.
Expand Down

0 comments on commit 037d496

Please sign in to comment.