]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
radosgw-admin: Pass max_entries for bucket list
authorTobias Urdin <tobias.urdin@binero.com>
Thu, 24 Jul 2025 21:42:46 +0000 (23:42 +0200)
committerJon <jonathan.bailey1@ibm.com>
Fri, 3 Oct 2025 13:31:27 +0000 (14:31 +0100)
commit0710556c2eea9cad65d3675aef0e93688cb124c8
tree8ac4b32274b294a0ee407807f686c5a3a067ea50
parentd3ba83c7d407b506caf4e205053650e20f232baa
radosgw-admin: Pass max_entries for bucket list

The changes in [1] did not take into account that
radosgw-admin code calls `RGWBucketAdminOp::info`
directly and passes a `RGWBucketAdminOpState`
struct where max_entries is not initialized so
we should not assume that it's zero.

This in turn broke the `bucket list --uid foo` and
`bucket stats --uid foo` commands as the output was
changed and thus not keeping backward compatibility.

This change makes sure that we populate max_entries
in `RGWBucketAdminOpState` if `--max-entries` argument
was specified otherwise we set it to zero to keep the
backward compatibility in the output format.

[1] https://github.com/ceph/ceph/pull/62777

Fixes: https://tracker.ceph.com/issues/72049
Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
(cherry picked from commit 3909c6554cdfcf1b05b5e32297b2e65e9c67af2b)
src/rgw/radosgw-admin/radosgw-admin.cc