]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: lc: restore unordered listing
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 29 Apr 2020 12:00:55 +0000 (08:00 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 30 Apr 2020 11:01:05 +0000 (07:01 -0400)
With current sharding strategy, a delete marker is always coresident
with all corresponding objects, including noncurrent, so unordered
listing -is- compatible with lookahead.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_lc.cc

index 57aa499b1ea06940495ee43b118b9d95bf165913..3d918e18aa23cab9cfe4a6c658872ed1fa599d28 100644 (file)
@@ -431,6 +431,7 @@ public:
       store(_store), bucket_info(_bucket_info),
       target(store->getRados(), bucket_info), list_op(&target) {
     list_op.params.list_versions = bucket_info.versioned();
+    list_op.params.allow_unordered = true;
     delay_ms = store->ctx()->_conf.get_val<int64_t>("rgw_lc_thread_delay");
   }