rgw: clean up index after full data sync

Fixes: https://tracker.ceph.com/issues/40177

Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2020-03-12 16:43:05 -04:00
parent d05bd30436
commit dd6bf0b5a8

View File

@ -1626,6 +1626,12 @@ public:
drain_all();
return set_cr_error(retcode);
}
// clean up full sync index
yield {
const auto& pool = sync_env->svc->zone->get_zone_params().log_pool;
auto oid = full_data_sync_index_shard_oid(sc->source_zone.id, shard_id);
call(new RGWRadosRemoveCR(sync_env->store, {pool, oid}));
}
// keep lease and transition to incremental_sync()
}
return 0;