]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix `bi put` not using right bucket index shard 44167/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Thu, 11 Nov 2021 22:20:24 +0000 (17:20 -0500)
committerCory Snyder <csnyder@iland.com>
Fri, 7 Jan 2022 10:29:53 +0000 (05:29 -0500)
commit0674b8086596a28d32df4a092725e68eb05f5237
tree28b5f668b14534870268815096b496613ec01acd
parentfe63bec3382a149b52666f29358580c48ad8772b
rgw: fix `bi put` not using right bucket index shard

When `radosgw-admin bi put` adds an entry for an incomplete multipart
upload, the bucket index shard is not calculated correctly. It should
be based on the name of the ultimate object. However the calculation
was including the added organizational suffixes as well. This corrects
that.

NOTE: When entries are not put in the correct index shard, unordered
listing becomes unreliable, perhaps causing entries to be skipped or
infinite loops to form.

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

Conflicts:
src/rgw/rgw_rados.cc

Cherry-pick notes:
- BucketShard init method does not take prefix provider arg in Octopus
src/rgw/rgw_rados.cc