]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: For corrupt objectstores, don't abort listing on errors
authorDavid Zafman <dzafman@redhat.com>
Fri, 2 Oct 2015 02:28:54 +0000 (19:28 -0700)
committerDavid Zafman <dzafman@redhat.com>
Fri, 30 Oct 2015 20:01:50 +0000 (13:01 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/tools/ceph_objectstore_tool.cc

index 93a4a332bcc682f4a6bd831a8b957f1ab58bc2e1..12ae5aa6e0aedc12dbc6707a74b50113d488ae14 100644 (file)
@@ -105,7 +105,7 @@ int _action_on_all_objects_in_pg(ObjectStore *store, coll_t coll, action_on_obje
         if (r < 0) {
          cerr << "Error getting attr on : " << make_pair(coll, *obj) << ", "
               << cpp_strerror(r) << std::endl;
-         return r;
+         continue;
         }
         bufferlist::iterator bp = attr.begin();
         try {
@@ -114,7 +114,7 @@ int _action_on_all_objects_in_pg(ObjectStore *store, coll_t coll, action_on_obje
          r = -EINVAL;
          cerr << "Error getting attr on : " << make_pair(coll, *obj) << ", "
               << cpp_strerror(r) << std::endl;
-         return r;
+         continue;
         }
       }
       r = action.call(store, coll, *obj, oi);