]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
RGW: Check all shards for user manifest parts
authorMatthew Oliver <moliver@suse.com>
Wed, 21 Oct 2020 06:14:40 +0000 (06:14 +0000)
committerMatthew Oliver <moliver@suse.com>
Wed, 21 Oct 2020 23:51:40 +0000 (23:51 +0000)
When we go and read an user manifest LO (or a DLO in the swift api)
there is a bug where we supply a defaulted params object that defaults
shard_id to 0. This means that when issueing a GET to the LO it'll only
check shard 0 for parts.

This is causing errors in tempest tests, and is obviously wrong.

This patch defaults the ListParams.shard_id to -1, so by default
all shards are checked for parts and therefore complete LO's
are returned.

Fixes: https://tracker.ceph.com/issues/47801
Fixes: https://tracker.ceph.com/issues/47800
Signed-off-by: Matthew Oliver <moliver@suse.com>
src/rgw/rgw_sal.h

index fc7dd911fe980021c4089dec3b6b8a98684c36e8..882d562e12cb361212f4a5ba500f707bdbd5087f 100644 (file)
@@ -154,7 +154,7 @@ class RGWBucket {
       RGWAccessListFilter *filter{nullptr};
       bool list_versions{false};
       bool allow_unordered{false};
-      int shard_id{0};
+      int shard_id{-1};
     };
     struct ListResults {
       vector<rgw_bucket_dir_entry> objs;