Do not block writes on previous writes

This commit is contained in:
Vitaliy Filippov
2025-12-02 01:52:12 +03:00
parent 249e04ac0d
commit c392e914e2
2 changed files with 4 additions and 21 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ int blockstore_impl_t::do_sync(blockstore_op_t *op, int base_state)
}
if (dsk.disable_journal_fsync && dsk.disable_meta_fsync || !unsynced_big_write_count && !unsynced_small_write_count)
{
// We can return immediately because sync is only dequeued after all previous writes
// We can return immediately because sync only syncs previous writes
unsynced_big_write_count = unsynced_small_write_count = 0;
return 2;
}