The original code pass `new_attrs` as argument, which will overwrite existing attrs.
(e.g. set bucket ratelimit will break all bucket policy and acl settings)
Signed-off-by: Wei Wang <lightmelodies@outlook.com>
(cherry picked from commit
eafe4ac81b787a2573b16036ac987822cbe0161c)
attrs[it.first] = it.second;
}
return store->ctl()->bucket->set_bucket_instance_attrs(get_info(),
- new_attrs, &get_info().objv_tracker, y, dpp);
+ attrs, &get_info().objv_tracker, y, dpp);
}
int RadosBucket::try_refresh_info(const DoutPrefixProvider* dpp, ceph::real_time* pmtime, optional_yield y)