Skip to content

Commit

Permalink
Rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerkaraszewski committed Jan 16, 2025
1 parent 8f8d3b0 commit 7dc927c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sqlitecluster/SQLiteNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1572,15 +1572,15 @@ void SQLiteNode::_onMESSAGE(SQLitePeer* peer, const SData& message) {
return;
}

bool replicationRunning = false;
bool isReplicationRunning = false;
{
lock_guard<mutex> lock(_replicateMutex);
if (!_shouldReplicateThreadExit) {
_replicateQueue.push(make_pair(peer, message));
replicationRunning = true;
isReplicationRunning = true;
}
}
if (replicationRunning) {
if (isReplicationRunning) {
if (!_replicateThread) {
_replicateThread = new thread(&SQLiteNode::_replicate, this);
}
Expand Down

0 comments on commit 7dc927c

Please sign in to comment.