diff --git a/src/log_io.cc b/src/log_io.cc index 6db09b16d9e7cab2ec6a5dcaa62d7e211c795680..d10e8a8f9c61c4fb25b3ffa93b7206c53fc2d0d1 100644 --- a/src/log_io.cc +++ b/src/log_io.cc @@ -69,7 +69,7 @@ row_v11_fill(struct row_v11 *row, int64_t lsn, uint16_t tag, uint64_t cookie, struct log_dir snap_dir = { /* .panic_if_error = */ false, /* .sync_is_async = */ false, - /* .open_wflags = */ 0, + /* .open_wflags = */ O_SYNC, /* .filetype = */ "SNAP\n", /* .filename_ext = */ ".snap", /* .dirname = */ NULL diff --git a/src/recovery.cc b/src/recovery.cc index 79de90bf8bb49fc54242965c7b1c9157f9c4b969..b5862a044f16bad8d40a9e32aaffd1a9e77e3021 100644 --- a/src/recovery.cc +++ b/src/recovery.cc @@ -1154,7 +1154,6 @@ snap_write_batch(struct fio_batch *batch, int fd) rows_written, batch->rows); panic_syserror("fio_batch_write"); } - fdatasync(fd); } void