related to: https://tracker.ceph.com/issues/40700
Signed-off-by: Mark Kogan <mkogan@redhat.com>
.. option:: --shard-id=<shard-id>
- Optional for mdlog list, data sync status. Required for ``mdlog trim``.
+ Optional for mdlog list, bi list, data sync status. Required for ``mdlog trim``.
.. option:: --max-entries=<entries>
formatter->open_array_section("entries");
- for (int i = 0; i < max_shards; i++) {
+ int i = (specified_shard_id ? shard_id : 0);
+ for (; i < max_shards; i++) {
RGWRados::BucketShard bs(store);
int shard_id = (bucket_info.num_shards > 0 ? i : -1);
int ret = bs.init(bucket, shard_id, nullptr /* no RGWBucketInfo */);
formatter->flush(cout);
} while (is_truncated);
formatter->flush(cout);
+
+ if (specified_shard_id)
+ break;
}
formatter->close_section();
formatter->flush(cout);