Skip to content

Commit

Permalink
adjust comment
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldoglas committed Jun 4, 2024
1 parent 6daf253 commit 4dac256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlitecluster/SQLiteNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ void SQLiteNode::_onMESSAGE(SQLitePeer* peer, const SData& message) {
// If the server is strugling and falling behind on replication, we might have too many threads
// causing a resource exhaustion. If that happens, all the transations that are already threaded
// and waiting for the transaction that failed will be stuck in an infinite loop. To prevent that
// we're cancelling all threads that would need to wait on the transaction that is failing.
// we're cancelling all threads that would need to wait on the transaction failed to be threaded.
uint64_t cancelAfter = message.calcU64("NewCount") - 1;
_localCommitNotifier.cancel(cancelAfter);
_leaderCommitNotifier.cancel(cancelAfter);
Expand Down

0 comments on commit 4dac256

Please sign in to comment.