Skip to content

Commit

Permalink
rgw: lifecycle thread shouldn't process the bucket which has been del…
Browse files Browse the repository at this point in the history
…eted.

Fixes: http://tracker.ceph.com/issues/20285

Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
  • Loading branch information
Zhang Shaowen committed Jun 14, 2017
1 parent c703459 commit a2b042f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_lc.cc
Expand Up @@ -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 {
Expand Down

0 comments on commit a2b042f

Please sign in to comment.