Add atomic_write_size parameter

This commit is contained in:
Vitaliy Filippov
2025-12-02 01:52:12 +03:00
parent 16dee7c136
commit 249e04ac0d
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ int blockstore_impl_t::dequeue_write(blockstore_op_t *op)
// parallel writes to the same object are forbidden anyway
else if (dsk.disable_data_fsync &&
op->opcode == BS_OP_WRITE_STABLE &&
op->len > 0 && op->len <= dsk.bitmap_granularity /* FIXME atomic_write_size */ &&
op->len > 0 && op->len <= dsk.atomic_write_size &&
(obj->get_writes()->flags == (BS_HEAP_BIG_WRITE|BS_HEAP_STABLE) ||
obj->get_writes()->flags == (BS_HEAP_INTENT_WRITE|BS_HEAP_STABLE)))
{