Repository navigation
crimson/os: rewrite ordering using std::strong_ordering - #47423
Merged
Merged
Conversation
tchaikov
commented
Aug 3, 2022
tchaikov
commented
Aug 3, 2022
2 of 14 tasks
tchaikov
marked this pull request as draft
August 3, 2022 04:59
Contributor
Author
|
i will
after the first round of reviews. |
tchaikov
force-pushed
the
wip-crimson-cmp
branch
from
August 3, 2022 05:51
cdcb936 to
9c911b2
Compare
4 of 14 tasks
tchaikov
marked this pull request as ready for review
August 3, 2022 05:52
Contributor
Author
|
jenkins test make check |
1 similar comment
Contributor
Author
|
jenkins test make check |
tchaikov
force-pushed
the
wip-crimson-cmp
branch
from
August 3, 2022 06:54
9c911b2 to
d8b275f
Compare
Contributor
Author
|
tchaikov
marked this pull request as draft
August 3, 2022 07:57
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
tchaikov
force-pushed
the
wip-crimson-cmp
branch
from
August 5, 2022 23:32
58cf763 to
680085e
Compare
tchaikov
force-pushed
the
wip-crimson-cmp
branch
3 times, most recently
from
August 6, 2022 10:35
ca074c2 to
8306c47
Compare
tchaikov
marked this pull request as ready for review
August 6, 2022 10:36
the goals are 1. to use std::strong_ordering mechinary for better readability and maintainbility 2. to remove unnecessary abstraction 3. use concept for better error message and readability. changes: * replace MatchKindCMP with std::strong_ordering * replace compare_to() with operator<=> * introduce a concept `IsFullKey` so we can use it when developing generic facilities to operate on both materialized key or view. * use `IsFullKey` in place of `KeyT` when appropriate Signed-off-by: Kefu Chai <[email protected]>
to silence warnings like:
../src/test/crimson/seastore/onode_tree/test_staged_fltree.cc:371:10: warning: 'random_shuffle<__gnu_cxx::__normal_iterator<std::pair<ghobject_t, crimson::os::seastore::onode::test_item_t> *, std::vector<std::pair<ghobject_t, crimson::os::seastore::onode::test_item_t>>>>' is deprecated: use 'std::shuffle' instead [-Wdeprecated-declarations]
std::random_shuffle(kvs.begin(), kvs.end());
^
Signed-off-by: Kefu Chai <[email protected]>
tchaikov
force-pushed
the
wip-crimson-cmp
branch
from
August 6, 2022 11:08
8306c47 to
aa9f255
Compare
cyx1231st
approved these changes
Aug 8, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
crimson/os: rewrite ordering using std::strong_ordering
the goals are
and maintainbility
changes:
IsFullKeyso we can use it when developinggeneric facilities to operate on both materialized key or view.
IsFullKeyin place ofKeyT.KeyTwhen appropriate.full_key_t<KT>full_key_t`
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