]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set bucket attr twice when delete lifecycle config. 34598/head
authorzhang Shaowen <zhangshaowen@cmss.chinamobile.com>
Fri, 11 Oct 2019 07:14:15 +0000 (15:14 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 16 Apr 2020 20:09:45 +0000 (22:09 +0200)
Fixes: https://tracker.ceph.com/issues/44093
Signed-off-by: zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
(cherry picked from commit c480b029f205c417935df2478a6aa66211f13658)

Conflicts:
src/rgw/rgw_op.cc
- set_bucket_instance_attrs call looks different in nautilus, presumably
  due to post-nautilus refactoring

src/rgw/rgw_op.cc

index 2f3e92671216df94b2a133abab6045de2821d271..c6033823dd4151425b70ad7eb18be6573bad459e 100644 (file)
@@ -5437,15 +5437,6 @@ void RGWDeleteLC::execute()
       return;
     }
   }
-  map<string, bufferlist> attrs = s->bucket_attrs;
-  attrs.erase(RGW_ATTR_LC);
-  op_ret = rgw_bucket_set_attrs(store, s->bucket_info, attrs,
-                               &s->bucket_info.objv_tracker);
-  if (op_ret < 0) {
-    ldpp_dout(this, 0) << "RGWLC::RGWDeleteLC() failed to set attrs on bucket="
-        << s->bucket.name << " returned err=" << op_ret << dendl;
-    return;
-  }
 
   op_ret = store->get_lc()->remove_bucket_config(s->bucket_info, s->bucket_attrs);
   if (op_ret < 0) {