we're deleting the bucket instance metadata anyway, so there's no reason
to send an additional write to remove the RGW_ATTR_LC xattr first. this
write bumps the cls_version and can cause the actual delete op to fail
with ECANCELED
Fixes: https://tracker.ceph.com/issues/62411
Signed-off-by: Casey Bodley <cbodley@redhat.com>
}
// remove lifecycle config, if any (XXX note could be made generic)
+ constexpr bool merge_attrs = false; // don't update xattrs, we're deleting
(void) store->getRados()->get_lc()->remove_bucket_config(
- this, get_attrs());
+ this, get_attrs(), merge_attrs);
ret = store->ctl()->bucket->sync_user_stats(dpp, info.owner, info, y, nullptr);
if (ret < 0) {