Fix another rare journal flush stall

This commit is contained in:
Vitaliy Filippov
2022-12-30 02:03:33 +03:00
parent cf5c562800
commit d7bd36dc32
3 changed files with 6 additions and 2 deletions
+3
View File
@@ -286,7 +286,10 @@ void blockstore_impl_t::handle_read_event(ring_data_t *data, blockstore_op_t *op
{
auto used = --journal.used_sectors[rv.journal_sector-1];
if (used == 0)
{
journal.used_sectors.erase(rv.journal_sector-1);
flusher->mark_trim_possible();
}
}
}
}