From 06153798f87880394aad1da3733e0fb531ba45d7 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 10 Apr 2015 17:39:31 -0700 Subject: [PATCH] ceph-objectstore-tool: drop explicit sync_and_flush() calls We implicitly sync on shutdown. Signed-off-by: Sage Weil --- src/tools/ceph_objectstore_tool.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index 796261a054214..257d5f1aabfb2 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -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; } -- 2.39.5