]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: lifecycle thread shouldn't process the bucket which has been deleted. 15677/head
authorZhang Shaowen <zhangshaowen@cmss.chinamobile.com>
Wed, 14 Jun 2017 02:29:53 +0000 (10:29 +0800)
committerZhang Shaowen <zhangshaowen@cmss.chinamobile.com>
Wed, 14 Jun 2017 02:29:53 +0000 (10:29 +0800)
Fixes: http://tracker.ceph.com/issues/20285
Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
src/rgw/rgw_lc.cc

index 1b7ce3c572e228691f52ef9594cb72003f03b2eb..ac1792c9e71cf7b71095c21775308eaa1d074942 100644 (file)
@@ -505,8 +505,8 @@ int RGWLC::bucket_lc_post(int index, int max_lock_sec, pair<string, int >& entry
       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 {