SERVER-128560ClosedFixed

Audit feature flag checks that derive VersionContext from expCtx's opCtx

Filing this as a separate ticket to keep the immediate fix for AF-17643 more minimal so it can be backported easily if needed.   From 's comment in AF-17643: {quote} - Outside of the feature flag checks in the expCtx, there are ~28 other sites in the codebase that derive the VersionContext straight from an expCtx's opCtx (from a quick sweep with Claude). These are most likely paths that expect to run with a live opCtx, but it may be worth verifying whether these could be reached from one

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

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

No components specified.

Labels
Tags and classification

No labels assigned.