Repository navigation
rgw: reorganize rgw basic types (rgw_basic_types.h) for portability across build contexts - #48767
mattbenjamin wants to merge 2 commits into
Conversation
|
@yuvalif note that minimally, the inclusion of rgw_basic_types.h in the rgw cls headers is proving correctness |
cbodley
left a comment
There was a problem hiding this comment.
a very nice cleanup of the existing structure 👍
in the context of zipper, i'd like to put more thought into defining our library boundaries. we'll need to eliminate any circular dependencies between the rgw code above zipper, and the rgw code that sal and its modules depend on. and by making it obvious which headers/types are used by sal, we can understand which changes will break api compatibility
| encode(endpoint, bl); | ||
| encode(key, bl); | ||
| encode(region, bl); | ||
| encode((uint32_t)host_style, bl); // XXX kill C-style casts |
There was a problem hiding this comment.
is the cast even required? enums should be encoded as their underlying type
There was a problem hiding this comment.
yeah, probably can just elide that
| void convert(cls_user_bucket *b) const; | ||
|
|
||
| void encode(ceph::buffer::list& bl) const { | ||
| ENCODE_START(10, 10, bl); |
mattbenjamin
left a comment
There was a problem hiding this comment.
about to repush--probably rebased into just 3 commits
38c6c06 to
92dc16b
Compare
cbodley
left a comment
There was a problem hiding this comment.
still a couple unresolved XXX comments, looks good otherwise
|
oops, no, will update |
92dc16b to
9e08af0
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
In downstream 4.1 version this change moved rgw_pool, rgw_bucket, and some related types--but these have already moved on more recent branches. Include rgw_basic_types.h only from cls_rgw_types.h (review). Signed-off-by: Matt Benjamin <[email protected]>
Defines a hierarchy of "simple" data types ensured to be
safe to include in any context above the zipper line, and
also from CLS.
The following headers are currently defined to contain basic
types only:
rewrite src/rgw/rgw_basic_types.h (70%) // includes the whole hierarchy
create mode 100644 src/rgw/rgw_acl_types.h
create mode 100644 src/rgw/rgw_bucket_types.h
create mode 100644 src/rgw/rgw_obj_types.h
create mode 100644 src/rgw/rgw_placement_types.h
create mode 100644 src/rgw/rgw_pool_types.h
create mode 100644 src/rgw/rgw_quota_types.h
create mode 100644 src/rgw/rgw_user_types.h
create mode 100644 src/rgw/rgw_zone_types.h
This commit consolidates the following original commits:
* rgw: move RGWUploadPartInfo to rgw_basic_types.{h,cc}
* rgw: move rgw_obj_key to rgw_basic_types.{h,cc}
* rgw: move rgw_placement_rule to rgw_basic_types.{h,cc}
* rgw: move rgw_obj to rgw_basic_types.{h,cc}
* rgw: include rgw_compression_types.h in rgw_basic_types.{h,cc}
* rgw: move rgw_raw_obj to rgw_basic_types.{h,cc}
* rgw: rgw_multi.h: remove unused RGWMPObj forward decl
and the following cleanups from review:
* rgw: remove stray comments
* rgw: move rgw_obj_manifest.h inclusion to top of rgw_basic_types.h
* rgw: nit: indentation
* rgw: remove this line
* rgw: move rgw_bucket_shard to rgw_bucket_types.h, cleanup
* rgw: fix rgw_quota.h
Signed-off-by: Matt Benjamin <[email protected]>
edc9a05 to
19c4a14
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
these commits merged with #49336 |
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows