Skip to content

Store -> Driver rename + header cleanup - #49336

Merged
dang merged 4 commits into
ceph:mainfrom
dang:wip-dang-zipper-driver
Dec 9, 2022
Merged

dang merged 4 commits into
ceph:mainfrom
dang:wip-dang-zipper-driver

Conversation

@dang

@dang dang commented Dec 8, 2022

Copy link
Copy Markdown
Contributor

This PR contains two separate, but invasive changes: renaming the base class Store to Driver, and a cleanup/refactor of the headers.

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
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

dang and others added 4 commits December 8, 2022 14:13
All along, we've had an overload of the term "store".  It was the base
class of the entrypoint, and it was the lowest layer in a stack.  This
renames the base class to Driver.  So, the primary elements of zipper
that to work are now Drivers, and they come in two different flavors:
Filters live in the middle of the stack, and do not need to implement
every API, but pass through instead.  And Stores live a the bottom of
the stack, and must implement the entire API.

Signed-off-by: Daniel Gryniewicz <[email protected]>
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]>
Signed-off-by: Daniel Gryniewicz <[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]>
Signed-off-by: Daniel Gryniewicz <[email protected]>
@dang

dang commented Dec 9, 2022

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@dang

dang commented Dec 9, 2022

Copy link
Copy Markdown
Contributor Author

@dang
dang merged commit 2c8520c into ceph:main Dec 9, 2022
@dang
dang deleted the wip-dang-zipper-driver branch December 9, 2022 17:41
@ivancich ivancich mentioned this pull request Nov 4, 2023
4 of 14 tasks
kchheda3 pushed a commit to ceph/ceph-ci that referenced this pull request Jan 24, 2024
ceph/ceph#49336
(Store -> Driver rename + header cleanup #49336) makes a very large set
of refactoring changes - which directly affect the fix being introduced
here.

Fix was added after that large-set of changes so there's been quite a
bit merge-conflicts and build issues. Hence, this extra commit.
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