From d276d3286504ea702ae561b91dff4121c99feb9a Mon Sep 17 00:00:00 2001 From: David Zafman Date: Thu, 1 Oct 2015 19:28:54 -0700 Subject: [PATCH] ceph-objectstore-tool: For corrupt objectstores, don't abort listing on errors Signed-off-by: David Zafman --- src/tools/ceph_objectstore_tool.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index 93a4a332bcc..12ae5aa6e0a 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -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); -- 2.47.3