Autosync in blockstore every autosync_writes, too

This commit is contained in:
Vitaliy Filippov
2023-09-16 17:52:17 +03:00
parent 6a8e530e6b
commit f600cc07b0
4 changed files with 16 additions and 2 deletions
+4
View File
@@ -384,6 +384,10 @@ void blockstore_impl_t::enqueue_op(blockstore_op_t *op)
ringloop->set_immediate([op]() { std::function<void (blockstore_op_t*)>(op->callback)(op); });
return;
}
if (op->opcode == BS_OP_SYNC)
{
unsynced_queued_ops = 0;
}
init_op(op);
submit_queue.push_back(op);
ringloop->wakeup();