SERVER-138881ClosedFixed

IntentRegistry::_totalOpsKilled may be accessed without the lock

See https://github.com/10gen/mongo/blob/eac9038fbdb25fd726a0d3ccd1a6f432ba6b5b6b/src/mongo/db/repl/intent_registry.cpp#L651-L653. Suggested remedy is to use the {{MONGO_LOCKING}} annotations to prove that the lock is held when it should be. An AI implementation is [here|https://github.com/10gen/mongo/compare/brad.cater/tmp-ir-checked?expand=1].

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
neweng