From 42b94e7ae282f67d0a71af748e3a454c5cb1fede Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 12 Mar 2020 16:51:26 -0400 Subject: [PATCH] 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) --- src/rgw/rgw_sync.cc | 5 +++++ 1 file changed, 5 insertions(+) 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})); + } } /* -- 2.47.3