Skip to content

Commit

Permalink
Update SQLiteNode.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldoglas authored Dec 23, 2024
1 parent 2d02306 commit bd8d470
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sqlitecluster/SQLiteNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1287,9 +1287,11 @@ void SQLiteNode::_onMESSAGE(SQLitePeer* peer, const SData& message) {
if (peer == _leadPeer && currentCommitDifference >= 12'500 && !_blockedCommandPort) {
SINFO("Node is lagging behind, closing command port so it can catch up.");
_server.blockCommandPort(blockReason);
_blockedCommandPort = true;
} else if (currentCommitDifference < 1'000 && _blockedCommandPort) {
SINFO("Node is caught up enough, unblocking command port.");
_server.unblockCommandPort(blockReason);
_blockedCommandPort = false;
}
// Classify and process the message
if (SIEquals(message.methodLine, "LOGIN")) {
Expand Down

0 comments on commit bd8d470

Please sign in to comment.