SERVER-123150Backlog

Add optimization for unshardCollection when collection only has chunk(s) on destination shard

When unshardCollection is called on a sharded collection that only has chunk(s) residing on the destination shard, the full resharding operation cloning mechanism is unnecessary. Add a fast path that skips data movement entirely in that case and only updates the collection metadata.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
bkpcs-impact-4