From: Casey Bodley Date: Thu, 12 Mar 2020 20:51:26 +0000 (-0400) Subject: rgw: clean up index after full metadata sync X-Git-Tag: v18.0.0~1554^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F33934%2Fhead;p=ceph.git rgw: clean up index after full metadata sync Fixes: https://tracker.ceph.com/issues/40177 Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index 80b710d404a7c..3efa1cecbf829 100644 --- a/src/rgw/rgw_sync.cc +++ b/src/rgw/rgw_sync.cc @@ -1666,6 +1666,11 @@ public: drain_all(); return retcode; } + // clean up full sync index + yield { + auto oid = full_sync_index_shard_oid(shard_id); + call(new RGWRadosRemoveCR(sync_env->store, {pool, oid})); + } } /*