Skip to content

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

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

adamemerson wants to merge 1 commit into
ceph:wip-rgw-multisite-reshardfrom
adamemerson:wip-reshard-attr-hack

Conversation

@adamemerson

Copy link
Copy Markdown
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

@cbodley cbodley left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread src/rgw/rgw_tools.h Resolved
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 <[email protected]>
@adamemerson
adamemerson force-pushed the wip-reshard-attr-hack branch from 5b61462 to 42c7d79 Compare February 2, 2022 22:37
@cbodley

cbodley commented Feb 9, 2022

Copy link
Copy Markdown
Contributor

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