]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: Don't erase bucket attributes on trim
authorAdam C. Emerson <aemerson@redhat.com>
Wed, 2 Feb 2022 20:53:41 +0000 (15:53 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Thu, 28 Apr 2022 18:43:21 +0000 (14:43 -0400)
commit417a92bd568879a6ee3edff6131a45193fdb6a79
tree84593259301fce6fc49a5cf7d4f6d823d7ca9e18
parent4bc600a88dcf6677dc7f7b78734fd4bb00d8f9e7
rgw: Don't erase bucket attributes on trim

Writing bucket instance info is surprising, as if you pass a null
pointer for the attributes, it just erases all the attributes.

To avoid disturbing users and other 'system objects', make a special
case that we can pass in explicitly.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_tools.cc
src/rgw/rgw_tools.h
src/rgw/rgw_trim_bilog.cc