]> git.apps.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, 21 Dec 2021 22:27:37 +0000 (17:27 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 1 Feb 2022 23:31:28 +0000 (18:31 -0500)
commitf232064d26f34a7903959245e409372477f680af
treed3a94994a0dfbc7c71a4af52cba140018dd679b6
parentdee6fecdc49b4a9921c6b10bd4bfb4b9895b267c
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 "dir suggest changes" to each
of the shards to remove the entries.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/cls/rgw/cls_rgw_client.cc
src/cls/rgw/cls_rgw_client.h
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h
src/rgw/rgw_tools.cc
src/rgw/rgw_tools.h