]> 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)
committerCasey Bodley <cbodley@redhat.com>
Tue, 8 Feb 2022 21:31:06 +0000 (16:31 -0500)
commit1d00928a991d130edba18952b6922cf4a28171a0
tree8177dc7de419412b5c1f63f8c96dcf092046d567
parent8800bf718b6474a799837550dbbb632c0dab6667
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