]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
WBThrottle: use fdatasync instead of fsync
authorSamuel Just <sam.just@inktank.com>
Thu, 22 Aug 2013 18:19:52 +0000 (11:19 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 26 Aug 2013 17:32:33 +0000 (10:32 -0700)
Backport: dumpling
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/os/WBThrottle.cc

index 23e24765cc2424e06d58d10368ad882e5d35f70f..8479b3c878dafb68f6a6ea97e598ed7a4bb79945 100644 (file)
@@ -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();