diff options
author | Samuel Just <sam.just@inktank.com> | 2013-08-22 11:19:52 -0700 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-09-06 16:08:33 -0700 |
commit | 699324e0910e5e07a1ac68df8cf1108e5671ec15 (patch) | |
tree | 70d604c001dfbdef652985dfd10bbb8b970581d7 | |
parent | 074717b4b49ae1a55bc867e5c34d43c51edc84a5 (diff) | |
download | ceph-699324e0910e5e07a1ac68df8cf1108e5671ec15.tar.gz |
WBThrottle: use fdatasync instead of fsync
Backport: dumpling
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
(cherry picked from commit d571825080f0bff1ed3666e95e19b78a738ecfe8)
-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(); |