]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: "bucket check --fix" should delete damaged multipart uploads from bi 57405/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 26 Apr 2022 16:46:08 +0000 (12:46 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Fri, 10 May 2024 16:40:02 +0000 (12:40 -0400)
commit92177edff29dadad2404e43136359c0ccbe28e5a
tree99cbf21a6c84bf88016f014f1d5ea55b446b5f7f
parent724b224d2792e0a165483b16fb40b9c9f937af62
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>
(cherry picked from commit 0521c2ae830d54c4fee37ef5f1ea77ed298c27a0)

    Conflicts:
        src/rgw/driver/rados/rgw_rados.cc
            - remove bitx debugging
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