]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: handle error return value in build_linked_oids_index 13955/head
authorwangzhengyong <wangzhengyong@cmss.chinamobile.com>
Tue, 14 Mar 2017 03:05:48 +0000 (11:05 +0800)
committerwangzhengyong <wangzhengyong@cmss.chinamobile.com>
Tue, 14 Mar 2017 03:09:56 +0000 (11:09 +0800)
Signed-off-by: wangzhengyong@cmss.chinamobile.com
src/rgw/rgw_orphan.cc

index 5813cdc6b9e93f286735d23801969ceecec02a22..ece7efca30fc543365293d90bfa10167596c9e1f 100644 (file)
@@ -589,6 +589,11 @@ int RGWOrphanSearch::build_linked_oids_index()
       for (map<string, bufferlist>::iterator eiter = entries.begin(); eiter != entries.end(); ++eiter) {
         ldout(store->ctx(), 20) << " indexed entry: " << eiter->first << dendl;
         ret = build_linked_oids_for_bucket(eiter->first, oids);
+        if (ret < 0) {
+          lderr(store->ctx()) << __func__ << ": ERROR: build_linked_oids_for_bucket() indexed entry=" << eiter->first
+                              << " returned ret=" << ret << dendl;
+          return ret;
+        }
       }
 
       search_stage.shard = iter->first;