]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: "bucket check --fix" should delete damaged multipart uploads from bi
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 26 Apr 2022 16:46:08 +0000 (12:46 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 27 Apr 2022 14:51:30 +0000 (10:51 -0400)
commit0521c2ae830d54c4fee37ef5f1ea77ed298c27a0
tree2823e88b3a5e71dab51f1f29daaa0b8001efdd51
parent3793a29486a05da3d5b572d7708987dd6f69eb3e
rgw: "bucket check --fix" should delete damaged multipart uploads from bi

As one of the steps in `radosgw-admin bucket check --fix ...` it looks
for bucket index entries for incomplete multipart uploads that do not
have a corresponding ".meta" entry in the same bucket index. It then
intends to delete those entries, however the function that it calls
to perform the bucket index deletions was flawed and did not direct
the removals to the appropriate shard(s), but instead a non-existant
oid.

This commit determines the appropriate shard for each of the entries
to be removed and asynchronously issues a librados call to
omap_rm_keys.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/rgw/rgw_admin.cc
src/rgw/rgw_bucket.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h
src/rgw/services/svc_bi_rados.h