SERVER-95479ClosedFixed

Allow skipping rebuilding indexes during startup on failed initial syncs

In cases where we drop unfinished index builds including _id, we rebuild the _id index for collections as a part of startup. If the node then undergoes initial sync, we end up dropping the index and rebuilding it again. We should avoid duplicating the index build effort from building in startup, dropping in initial sync, and possibly building it again in initial sync. We could detect needing to enable this optimization when retrying failed initial syncs.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.0.7
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
bkpperfstorex-ops