From 06f49780852198cac2d9ccfb2e0462fcc69df2a9 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Tue, 24 Mar 2020 02:39:12 +0300 Subject: [PATCH] Fix fsync check in blockstore_flush (data fsyncs were disabled instead of journal fsyncs) --- src/blockstore_flush.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockstore_flush.cpp b/src/blockstore_flush.cpp index 3af87685..4de301e6 100644 --- a/src/blockstore_flush.cpp +++ b/src/blockstore_flush.cpp @@ -804,7 +804,7 @@ bool journal_flusher_co::fsync_batch(bool fsync_meta, int wait_base) goto resume_1; else if (wait_state == wait_base+2) goto resume_2; - if (!(fsync_meta ? bs->disable_meta_fsync : bs->disable_journal_fsync)) + if (!(fsync_meta ? bs->disable_meta_fsync : bs->disable_data_fsync)) { cur_sync = flusher->syncs.end(); while (cur_sync != flusher->syncs.begin())