From 795020674d82c5c23af19519b8e071d21b9f6d1f Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Tue, 27 Dec 2022 02:19:15 +0300 Subject: [PATCH] Loop journal flusher when the queue is empty but there is a trim request --- src/blockstore_flush.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockstore_flush.cpp b/src/blockstore_flush.cpp index d3ca3904..76452c84 100644 --- a/src/blockstore_flush.cpp +++ b/src/blockstore_flush.cpp @@ -77,7 +77,7 @@ void journal_flusher_t::loop() cur_flusher_count--; } } - for (int i = 0; (active_flushers > 0 || dequeuing) && i < cur_flusher_count; i++) + for (int i = 0; (active_flushers > 0 || dequeuing || trim_wanted > 0) && i < cur_flusher_count; i++) co[i].loop(); }