SERVER-91841ClosedFixed

Repaired nodes rejoining replica set can hit invariant

If a node that was repaired via [{{--repair}}|https://www.mongodb.com/docs/manual/tutorial/recover-data-following-unexpected-shutdown/] rejoins a replica set that it was a part of (like in [this test|https://github.com/mongodb/mongo/blob/94bf4508f622ca9a986226f0a54cb529beda90cb/jstests/disk/repair_invalidates_replica_set_config.js#L121-L128]), it will go through initial sync. This is because we run repair in cases of potential data loss or corruption, and we don't want the repaired node becoming

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
8.1.0-rc08.0.0-rc11
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.