]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Fri, 27 May 2022 19:47:33 +0000 (15:47 -0400)
commit010b3ad04a2911be45d11ba8934af1c13e75a072
treea004d7f475d466ffe47d26b97baf17c7f66bca1b
parent9eab2dbc976c6feeaf2bfb3423ece7a4ab4965cd
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