Skip to content

rgw: Don't erase bucket attributes on trim#44871

Closed
adamemerson wants to merge 1 commit intoceph:wip-rgw-multisite-reshardfrom
adamemerson:wip-reshard-attr-hack
Closed

rgw: Don't erase bucket attributes on trim#44871
adamemerson wants to merge 1 commit intoceph:wip-rgw-multisite-reshardfrom
adamemerson:wip-reshard-attr-hack

Conversation

@adamemerson
Copy link
Contributor

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.

@github-actions github-actions bot added the rgw label Feb 2, 2022
Copy link
Contributor

@cbodley cbodley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, it took me way too many steps to verify that RGWPutBucketInstanceInfoCR actually does call rgw_put_system_obj()

because this only changes a very specific call path, it has low risk of regression elsewhere

i'm still interested in figuring out what the right interface is in the longer term, but i'm happy to have no_change_attrs() as a tool in the meantime

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>
@adamemerson adamemerson force-pushed the wip-reshard-attr-hack branch from 5b61462 to 42c7d79 Compare February 2, 2022 22:37
@cbodley
Copy link
Contributor

cbodley commented Feb 9, 2022

merged into wip-rgw-multisite-reshard

@cbodley cbodley closed this Feb 9, 2022
@adamemerson adamemerson deleted the wip-reshard-attr-hack branch May 24, 2022 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants