Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

octopus: rgw: have "bucket check --fix" fix pool ids correctly #45456

Merged
merged 1 commit into from May 19, 2022

Conversation

cfsnyder
Copy link
Contributor

backport tracker: https://tracker.ceph.com/issues/52991


backport of #43594
parent tracker: https://tracker.ceph.com/issues/52941

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/master/src/script/ceph-backport.sh


librados::IoCtx head_obj_ctx; // initialize to data pool so we can get pool id
const bool head_pool_found =
get_obj_head_ioctx(dpp, bucket_info, obj, &head_obj_ctx);
Copy link
Contributor

Choose a reason for hiding this comment

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

/ceph-15.2.16-99-g74a2b133/src/rgw/rgw_rados.cc: In member function ‘int RGWRados::check_disk_state(librados::v14_2_0::IoCtx, const RGWBucketInfo&, rgw_bucket_dir_entry&, rgw_bucket_dir_entry&, ceph::bufferlist&, optional_yield)’:
/ceph-15.2.16-99-g74a2b133/src/rgw/rgw_rados.cc:8953:24: error: ‘dpp’ was not declared in this scope
     get_obj_head_ioctx(dpp, bucket_info, obj, &head_obj_ctx);
                        ^~~

The current code sets the pool id of bucket index entries to the
bucket index pool rather than the data pool. This fixes that.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 4c2ac79)

Conflicts:
	src/rgw/rgw_rados.cc

Cherry-pick notes:
- Conflict due to braces around if condition after change that weren't on Octopus
- Octopus using dout vs. ldpp_dout
@yuriw yuriw merged commit 4b249a2 into ceph:octopus May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants