Skip to content

rgw/rados: remove sal handles from RGWRados::Object ops#50169

Merged
cbodley merged 4 commits intoceph:mainfrom
cbodley:wip-rgw-unsal-rados
Mar 2, 2023
Merged

rgw/rados: remove sal handles from RGWRados::Object ops#50169
cbodley merged 4 commits intoceph:mainfrom
cbodley:wip-rgw-unsal-rados

Conversation

@cbodley
Copy link
Contributor

@cbodley cbodley commented Feb 19, 2023

a cleanup of the RGWRados layer that restores many functions to their pre-pacific form, where buckets are passed as RGWBucketInfo& and objects are passed as const rgw_obj&. this avoids a lots of cases where we had to allocate sal objects just to specify an object name. this also removed some sal APIs that had only been used internally by rgw_sal_sados

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

use RGWObjState::attrset instead

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
these had no callers above zipper

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley cbodley requested a review from a team as a code owner February 19, 2023 17:45
@cbodley
Copy link
Contributor Author

cbodley commented Feb 19, 2023

sorry for the massive commit. there wasn't really a way to break it up and still compile after each commit

protected:
RGWObjState state;
Bucket* bucket;
Attrs attrs;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dang do you know of any specific need to keep attrs separate from state.attrset? get_attrs()/set_attrs()/has_attrs() are all based on the latter

Copy link
Contributor

Choose a reason for hiding this comment

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

No, attrs predates RGWObjState being there at all, so it can go.

@cbodley
Copy link
Contributor Author

cbodley commented Mar 2, 2023

@cbodley cbodley merged commit 962a2ce into ceph:main Mar 2, 2023
@cbodley cbodley deleted the wip-rgw-unsal-rados branch March 2, 2023 12:45
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.

2 participants