]> git.apps.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)
committerNathan Cutler <ncutler@suse.com>
Sun, 9 Aug 2020 20:49:12 +0000 (22:49 +0200)
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>
(cherry picked from commit f366ddb31113a826d2b5cfb45177c23cda83d995)

src/rgw/rgw_lc.cc

index 4a475ad7c4a0114e612b80e109eed53219666738..736b576969e67953a99817684638093b9d875f68 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");
   }