From 3474f677c7bdb99bf64e38c26d1d2c02feb8da80 Mon Sep 17 00:00:00 2001 From: wangzhengyong Date: Tue, 14 Mar 2017 11:05:48 +0800 Subject: [PATCH] rgw: handle error return value in build_linked_oids_index Signed-off-by: wangzhengyong@cmss.chinamobile.com --- src/rgw/rgw_orphan.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rgw/rgw_orphan.cc b/src/rgw/rgw_orphan.cc index 5813cdc6b9e9..ece7efca30fc 100644 --- a/src/rgw/rgw_orphan.cc +++ b/src/rgw/rgw_orphan.cc @@ -589,6 +589,11 @@ int RGWOrphanSearch::build_linked_oids_index() for (map::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; -- 2.47.3