]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: drop explicit sync_and_flush() calls
authorSage Weil <sage@redhat.com>
Sat, 11 Apr 2015 00:39:31 +0000 (17:39 -0700)
committerSage Weil <sage@redhat.com>
Wed, 19 Aug 2015 21:03:55 +0000 (17:03 -0400)
We implicitly sync on shutdown.

Signed-off-by: Sage Weil <sage@redhat.com>
src/tools/ceph_objectstore_tool.cc

index 796261a0542140314e8627250abde7eebf382332..257d5f1aabfb27972ddd714e77fd31583a55c424 100644 (file)
@@ -164,14 +164,12 @@ int action_on_all_objects_in_pg(ObjectStore *store, string pgidstr, action_on_ob
     if (r < 0)
       break;
   }
-  store->sync_and_flush();
   return r;
 }
 
 int action_on_all_objects_in_exact_pg(ObjectStore *store, coll_t coll, action_on_object_t &action, bool debug)
 {
   int r = _action_on_all_objects_in_pg(store, coll, action, debug);
-  store->sync_and_flush();
   return r;
 }
 
@@ -212,7 +210,6 @@ int _action_on_all_objects(ObjectStore *store, action_on_object_t &action, bool
 int action_on_all_objects(ObjectStore *store, action_on_object_t &action, bool debug)
 {
   int r = _action_on_all_objects(store, action, debug);
-  store->sync_and_flush();
   return r;
 }