Skip to content

Commit

Permalink
Merge pull request #875 from Expensify/master
Browse files Browse the repository at this point in the history
Update expensify_prod branch
  • Loading branch information
johnmlee101 authored Sep 14, 2020
2 parents d88ff3e + 9d6bc8c commit 01e6e7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sqlitecluster/SQLiteSequentialNotifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ void SQLiteSequentialNotifier::cancel() {
_globalResult = RESULT::CANCELED;
for (auto& p : _valueToPendingThreadMap) {
lock_guard<mutex> lock(p.second->waitingThreadMutex);
p.second->result = RESULT::CANCELED;
p.second->waitingThreadConditionVariable.notify_all();
}
_valueToPendingThreadMap.clear();
Expand All @@ -70,6 +71,7 @@ void SQLiteSequentialNotifier::checkpointRequired(SQLite& db) {
_globalResult = RESULT::CHECKPOINT_REQUIRED;
for (auto& p : _valueToPendingThreadMap) {
lock_guard<mutex> lock(p.second->waitingThreadMutex);
p.second->result = RESULT::CHECKPOINT_REQUIRED;
p.second->waitingThreadConditionVariable.notify_all();
}
_valueToPendingThreadMap.clear();
Expand Down

0 comments on commit 01e6e7b

Please sign in to comment.