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: v17.1.0~38^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F44645%2Fhead;p=ceph.git rgw: clean up index after full metadata sync Fixes: https://tracker.ceph.com/issues/40177 Signed-off-by: Casey Bodley (cherry picked from commit 3b93654d6e495ee7876653f4dabc546cc3c0ba94) --- diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index e7f27602029c..86a72d1740f9 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})); + } } /*