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
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) {