Fsync data before writing metadata

This commit is contained in:
Vitaliy Filippov
2019-12-03 00:20:13 +03:00
parent a165909745
commit aa3b252327
3 changed files with 49 additions and 43 deletions
+1
View File
@@ -272,6 +272,7 @@ class blockstore
uint64_t data_offset, data_size, data_len;
bool readonly = false;
// FIXME: separate flags for data, metadata and journal
bool disable_fsync = false;
bool inmemory_meta = false;
void *metadata_buffer = NULL;