From: lizhipeng Date: Wed, 17 Jun 2026 04:31:05 +0000 (-0400) Subject: rgw:adding bucket index Indexless check when bi list X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aed96f7a2f690cafd394684ca1fa4bc02be0edad;p=ceph.git rgw:adding bucket index Indexless check when bi list fixes:https://tracker.ceph.com/issues/73861 Signed-off-by: lizhipeng Co-authored-by: lizhipeng --- diff --git a/src/rgw/radosgw-admin/radosgw-admin.cc b/src/rgw/radosgw-admin/radosgw-admin.cc index 617b63a2072c..6baf7e4a77fd 100644 --- a/src/rgw/radosgw-admin/radosgw-admin.cc +++ b/src/rgw/radosgw-admin/radosgw-admin.cc @@ -8627,6 +8627,11 @@ next: std::list entries; bool is_truncated; const auto& index = bucket->get_info().layout.current_index; + if (index.layout.type == rgw::BucketIndexType::Indexless) { + cerr << "Error: indexless bucket has no index to list" << std::endl; + return EINVAL; + } + const int max_shards = rgw::num_shards(index); if (max_entries < 0) { max_entries = 1000;