mirror of
https://github.com/ceph/ceph
synced 2025-02-22 10:37:15 +00:00
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:
parent
d05bd30436
commit
dd6bf0b5a8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user