Commit 9eeb71e
committed
rgw: fix
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 <[email protected]>radosgw-admin object unlink ...
1 parent 70417d2 commit 9eeb71e
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11206 | 11206 | | |
11207 | 11207 | | |
11208 | 11208 | | |
11209 | | - | |
11210 | | - | |
| 11209 | + | |
| 11210 | + | |
| 11211 | + | |
| 11212 | + | |
| 11213 | + | |
11211 | 11214 | | |
11212 | 11215 | | |
11213 | 11216 | | |
| |||
0 commit comments