From 8c68b370bee9a9a2d7ea06344b7bab9bb992f9ac Mon Sep 17 00:00:00 2001 From: Jung-Sang Ahn Date: Mon, 9 Sep 2024 23:03:10 -0700 Subject: [PATCH] Fix to bug of dedicated flusher (#173) * Dedicated flusher should do nothing if the queue is empty. --- src/flusher.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flusher.cc b/src/flusher.cc index dc9ea16..2afbb55 100644 --- a/src/flusher.cc +++ b/src/flusher.cc @@ -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 l(dbm->dbMapLock); // NOTE: