]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix `bi put` not using right bucket index shard 43908/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Thu, 11 Nov 2021 22:20:24 +0000 (17:20 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Fri, 12 Nov 2021 16:37:40 +0000 (11:37 -0500)
commit2e620ac2abab6c14cbe4f17c59d5758b09430703
treeaa584b5b62fd8ba371c0edb75930d923093cce0e
parent2a10bf52a9f74f53e33b8cd7d817c8411a53a175
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>
src/rgw/rgw_rados.cc