Skip to content

tentacle: RGW: remove custom copy ctor for RGWObjectCtx and enforce no copy/move - #67440

Merged
batrick merged 1 commit into
ceph:tentaclefrom
BBoozmen:wip-75040-tentacle
May 9, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
BBoozmen:wip-75040-tentacle

Conversation

@BBoozmen

Copy link
Copy Markdown
Contributor

…opy/move

The custom copy constructor allowed RGWObjectCtx to be copied without
locking the source, enabling concurrent modifications of objs_state
during std::_Rb_tree::_M_copy(). This could corrupt the map and cause
crashes during copy or destruction. Since RGWObjectCtx is not meant to
be copied or moved, remove the custom copy constructor and rely on the
type's natural non-copyable semantics, with static assertions enforcing
the contract.

Related to: https://tracker.ceph.com/issues/62063
Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit aaa0bf7)
@BBoozmen BBoozmen added this to the tentacle milestone Feb 19, 2026
@BBoozmen BBoozmen added the rgw label Feb 19, 2026
@BBoozmen
BBoozmen requested a review from a team March 4, 2026 19:08
@BBoozmen BBoozmen added needs-qa wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh and removed wip-oozmen-testing for teuthology integration testing to be used via build-integration-branch.sh labels Apr 22, 2026

@batrick batrick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@batrick
batrick merged commit 54a2e3a into ceph:tentacle May 9, 2026
8 checks passed
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