diff options
author | Samuel Just <sam.just@inktank.com> | 2013-08-22 11:19:52 -0700 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-08-26 23:29:00 -0700 |
commit | 8b30264e2c71788e6cdb89c98ef44caec9d82308 (patch) | |
tree | ac8df5cba4d34e4603856512aef1e6aeabf2e500 | |
parent | 29a24ab854c7bbae073e6a57a45672bf265bf29b (diff) | |
download | ceph-8b30264e2c71788e6cdb89c98ef44caec9d82308.tar.gz |
WBThrottle: use fdatasync instead of fsync
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r-- | src/os/WBThrottle.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/WBThrottle.cc b/src/os/WBThrottle.cc index 23e24765cc2..8479b3c878d 100644 --- a/src/os/WBThrottle.cc +++ b/src/os/WBThrottle.cc @@ -145,7 +145,7 @@ void *WBThrottle::entry() while (get_next_should_flush(&wb)) { clearing = wb.get<0>(); lock.Unlock(); - ::fsync(**wb.get<1>()); + ::fdatasync(**wb.get<1>()); if (wb.get<2>().nocache) posix_fadvise(**wb.get<1>(), 0, 0, POSIX_FADV_DONTNEED); lock.Lock(); |