Note to add no-fsync mode in the future

This commit is contained in:
Vitaliy Filippov
2019-11-27 02:27:38 +03:00
parent 74d8ea2f01
commit 06634054c9
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -39,6 +39,7 @@ int blockstore::continue_sync(blockstore_operation *op)
if (op->sync_state == SYNC_HAS_SMALL)
{
// No big writes, just fsync the journal
// FIXME: Add no-fsync mode
BS_SUBMIT_GET_SQE(sqe, data);
my_uring_prep_fsync(sqe, journal.fd, 0);
data->iov = { 0 };
@@ -50,6 +51,7 @@ int blockstore::continue_sync(blockstore_operation *op)
else if (op->sync_state == SYNC_HAS_BIG)
{
// 1st step: fsync data
// FIXME: Add no-fsync mode
BS_SUBMIT_GET_SQE(sqe, data);
my_uring_prep_fsync(sqe, data_fd, 0);
data->iov = { 0 };