The current code seems to append the value to the bucket attr which isn't what
we want
Fixes: https://tracker.ceph.com/issues/39654
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
RGWLifecycleConfiguration *config)
{
map<string, bufferlist> attrs = bucket_attrs;
- config->encode(attrs[RGW_ATTR_LC]);
+ bufferlist lc_bl;
+ config->encode(lc_bl);
+
+ attrs[RGW_ATTR_LC] = std::move(lc_bl);
+
int ret = rgw_bucket_set_attrs(store, bucket_info, attrs, &bucket_info.objv_tracker);
if (ret < 0)
return ret;