Repository navigation
os/seastore: fix FTBFS due to passing const d_node to _omap_set_kvs() - #55844
Closed
rzarzynski wants to merge 1 commit into
Closed
rzarzynski wants to merge 1 commit into
rzarzynski wants to merge 1 commit into
Conversation
14 tasks
ljflores
reviewed
Feb 29, 2024
ljflores
left a comment
Member
There was a problem hiding this comment.
build/build/workspace/ceph-pull-requests/src/crimson/os/seastore/seastore.cc
/home/jenkins-build/build/workspace/ceph-pull-requests/src/crimson/os/seastore/seastore.cc:1594:65: error: lambda without a parameter clause is a C++2b extension [-Werror,-Wc++2b-extensions]
return trans_intr::repeat([&ctx, onode, d_onode, this, otype] mutable {
^
()
1 error generated.
```
[ 96%] Building CXX object src/crimson/os/seastore/CMakeFiles/crimson-seastore.dir/seastore.cc.o
/home/jenkins-build/build/workspace/ceph-dev-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/19.0.0-1777-ga04996aa/rpm/el8/BUILD/ceph-19.0.0-1777-ga04996aa/src/crimson/os/seastore/seastore.cc: In lambda function:
/home/jenkins-build/build/workspace/ceph-dev-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/19.0.0-1777-ga04996aa/rpm/el8/BUILD/ceph-19.0.0-1777-ga04996aa/src/crimson/os/seastore/seastore.cc:1618:11: error: cannot convert ‘const OnodeRef’ {aka ‘const boost::intrusive_ptr<crimson::os::seastore::Onode>’} to ‘crimson::os::seastore::OnodeRef&’ {aka ‘boost::intrusive_ptr<crimson::os::seastore::Onode>&’}
1618 | d_onode,
| ^~~~~~~
| |
| const OnodeRef {aka const boost::intrusive_ptr<crimson::os::seastore::Onode>}
In file included from /home/jenkins-build/build/workspace/ceph-dev-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/19.0.0-1777-ga04996aa/rpm/el8/BUILD/ceph-19.0.0-1777-ga04996aa/src/crimson/os/seastore/seastore.cc:4:
/home/jenkins-build/build/workspace/ceph-dev-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/19.0.0-1777-ga04996aa/rpm/el8/BUILD/ceph-19.0.0-1777-ga04996aa/src/crimson/os/seastore/seastore.h:429:17: note: initializing argument 1 of ‘crimson::os::seastore::SeaStore::Shard::omap_set_kvs_ret crimson::os::seastore::SeaStore::Shard::_omap_set_kvs(crimson::os::seastore::OnodeRef&, const crimson::os::seastore::omap_root_le_t&, crimson::os::seastore::Transaction&, std::map<std::__cxx11::basic_string<char>, ceph::buffer::v15_2_0::list>&&)’
429 | OnodeRef &onode,
| ~~~~~~~~~~^~~~~
make[2]: *** [src/crimson/os/seastore/CMakeFiles/crimson-seastore.dir/build.make:622: src/crimson/os/seastore/CMakeFiles/crimson-seastore.dir/seastore.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
```
Signed-off-by: Radoslaw Zarzynski <[email protected]>
rzarzynski
force-pushed
the
wip-fix-_omap_set_kvs
branch
from
February 29, 2024 19:47
2d195fd to
27a73ca
Compare
rzarzynski
commented
Feb 29, 2024
| const omap_type_t otype) | ||
| { | ||
| return trans_intr::repeat([&ctx, onode, d_onode, this, otype] { | ||
| return trans_intr::repeat([&ctx, onode, d_onode, this, otype]() mutable { |
Contributor
Author
There was a problem hiding this comment.
Oops, added (). Thanks @ljflores for pointing this out!
Member
|
Seems there is an unrelated FTBFS issue, not sure how they passed jenkens initially. |
cyx1231st
approved these changes
Mar 1, 2024
| return seastar::do_with( | ||
| std::optional<std::string>(std::nullopt), | ||
| [&ctx, onode, d_onode, this, otype](auto &start) { | ||
| [&ctx, onode, d_onode, this, otype](auto &start) mutable { |
Member
There was a problem hiding this comment.
Probably it's better to adjust the type of the param rather than adding mutable here? @xxhdx1985126
Still approving to fix the issue first.
Member
|
jenkins test make check |
Member
|
@rzarzynski @ljflores I merged #55855 |
Contributor
Author
|
Closing in favor of #55855. |
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.
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. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.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 windowsjenkins test rook e2e