Skip to content

Commit

Permalink
Fix to bug of dedicated flusher (#173)
Browse files Browse the repository at this point in the history
* Dedicated flusher should do nothing if the queue is empty.
  • Loading branch information
greensky00 authored Sep 10, 2024
1 parent 069f54a commit 8c68b37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flusher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ void Flusher::work(WorkerOptions* opt_base) {
}
if (cursor) skiplist_release_node(cursor);

} else {
// Otherwise: check DB map.
} else if (!handleAsyncReqs) {
// Otherwise: check DB map, only when it is not the dedicated flusher.
std::lock_guard<std::mutex> l(dbm->dbMapLock);

// NOTE:
Expand Down

0 comments on commit 8c68b37

Please sign in to comment.