]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix `radosgw-admin object unlink ...` 66152/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, 19 Nov 2025 18:26:28 +0000 (13:26 -0500)
commit938a759fdf0c37e29ff9a5241f169be3a95841f0
tree65a1fd1ad78d0799b3ae9a8d2846a19e47b6a668
parent83c6ad27a40495bb2b7b74e8d5aa67d82f856666
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>
(cherry picked from commit 9eeb71e28526df8ce2b920d4f50763a734264416)
src/rgw/driver/rados/rgw_rados.cc