]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix `radosgw-admin object unlink ...` 66123/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 4 Nov 2025 21:55:38 +0000 (16:55 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 5 Nov 2025 13:36:49 +0000 (08:36 -0500)
commit9eeb71e28526df8ce2b920d4f50763a734264416
tree1ade6b43b231951358aa8fdb52445e6000cdc1de
parent70417d2173842a1a0f5b78e3e1fe2aea0de6ebb9
rgw: fix `radosgw-admin object unlink ...`

The unlink subcommand did not handle unsharded bucket indices
appropriately. These are when the number of shards listed in the
bucket instance object is 0. In that case there will actually be 1
shard.

When number of shards as 0 is passed into the function that maps
object names to shards, it returns -1. And that was not handled
properly. That is now fixed.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/rgw/driver/rados/rgw_rados.cc