Loop journal flusher when the queue is empty but there is a trim request

rm-left-on-dead
Vitaliy Filippov 2022-12-27 02:19:15 +03:00
parent 8e12285629
commit 795020674d
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}