Safe stop procedure

This commit is contained in:
Vitaliy Filippov
2019-11-25 01:29:07 +03:00
parent 50cf3667fa
commit be3015169f
5 changed files with 37 additions and 3 deletions
+5
View File
@@ -41,6 +41,11 @@ journal_flusher_t::~journal_flusher_t()
delete[] co;
}
bool journal_flusher_t::is_active()
{
return active_flushers > 0 || flush_queue.size() > 0;
}
void journal_flusher_t::loop()
{
for (int i = 0; i < flusher_count; i++)