summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Just <sam.just@inktank.com>2013-08-22 11:19:52 -0700
committerSamuel Just <sam.just@inktank.com>2013-08-26 23:29:00 -0700
commit8b30264e2c71788e6cdb89c98ef44caec9d82308 (patch)
treeac8df5cba4d34e4603856512aef1e6aeabf2e500
parent29a24ab854c7bbae073e6a57a45672bf265bf29b (diff)
downloadceph-8b30264e2c71788e6cdb89c98ef44caec9d82308.tar.gz
WBThrottle: use fdatasync instead of fsync
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r--src/os/WBThrottle.cc2
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();