Make fsync flags separate for data, metadata and journal

This commit is contained in:
Vitaliy Filippov
2020-01-17 13:41:37 +03:00
parent d5386aa958
commit d0ab2a20b2
5 changed files with 26 additions and 13 deletions
+1 -2
View File
@@ -194,9 +194,8 @@ class blockstore_impl_t
// Sparse write tracking granularity. 4 KB is a good choice. Must be a multiple of disk_alignment
uint64_t bitmap_granularity = 4096;
bool readonly = false;
// FIXME: separate flags for data, metadata and journal
// It is safe to disable fsync() if drive write cache is writethrough
bool disable_fsync = false;
bool disable_data_fsync = false, disable_meta_fsync = false, disable_journal_fsync = false;
bool inmemory_meta = false;
int flusher_count;
/******* END OF OPTIONS *******/