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 10:32:33 -0700 |
commit | d571825080f0bff1ed3666e95e19b78a738ecfe8 (patch) | |
tree | 3f18b5e02bc4df3aa0cf49cecd6b6d43b9d41ea1 | |
parent | 3528100a53724e7ae20766344e467bf762a34163 (diff) | |
download | ceph-d571825080f0bff1ed3666e95e19b78a738ecfe8.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>
-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(); |