Implement read-modify-write calculation and extract it into a separate file

This commit is contained in:
Vitaliy Filippov
2020-02-23 02:11:43 +03:00
parent 0e177c7a2a
commit d4fd9d982a
11 changed files with 637 additions and 178 deletions
+6
View File
@@ -316,6 +316,12 @@ void blockstore_impl_t::enqueue_op(blockstore_op_t *op, bool first)
{
return;
}
if (0 && op->opcode == BS_OP_SYNC && immediate_commit)
{
op->retval = 0;
op->callback(op);
return;
}
// Call constructor without allocating memory. We'll call destructor before returning op back
new ((void*)op->private_data) blockstore_op_private_t;
PRIV(op)->wait_for = 0;