From b27595ae9c3490a4ff1d39b0d864a4a47a941981 Mon Sep 17 00:00:00 2001 From: Zhang Shaowen Date: Wed, 14 Jun 2017 10:29:53 +0800 Subject: [PATCH] rgw: lifecycle thread shouldn't process the bucket which has been deleted. Fixes: http://tracker.ceph.com/issues/20285 Signed-off-by: Zhang Shaowen (cherry picked from commit a2b042fe9f7e6503273fa4c2a4c56e399d7c338f) --- src/rgw/rgw_lc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_lc.cc b/src/rgw/rgw_lc.cc index 4821b1888ee39..5f70cff8e3b8a 100644 --- a/src/rgw/rgw_lc.cc +++ b/src/rgw/rgw_lc.cc @@ -362,8 +362,8 @@ int RGWLC::bucket_lc_post(int index, int max_lock_sec, cls_rgw_lc_obj_head& head ret = cls_rgw_lc_rm_entry(store->lc_pool_ctx, obj_names[index], entry); if (ret < 0) { dout(0) << "RGWLC::bucket_lc_post() failed to remove entry " << obj_names[index] << dendl; - goto clean; } + goto clean; } else if (result < 0) { entry.second = lc_failed; } else { -- 2.39.5