From 3b93654d6e495ee7876653f4dabc546cc3c0ba94 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 --- 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 80b710d404a..3efa1cecbf8 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