SERVER-130130In Code Review

Migration recipient corrupts the persisted orphan count by decrementing it for xferMods deletes that remove no document

h2. Problem On the migration recipient, the apply step for xferMods deletes processes each {{_id}} in the delete batch by issuing a justOne delete and then decrementing an in-flight orphan delta. That delta is later persisted and feeds the recipient's orphan accounting and range-deleter bookkeeping for the migrated range. h2. Root cause The orphan delta is decremented once per delete entry, *unconditionally*, even when the delete removed nothing: The recipient legitimately r

Affected Versions
Versions known to exhibit this issue
6.0.07.0.08.0.0
Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue
Sharding
Labels
Tags and classification

No labels assigned.