-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Replication
-
ALL
In multiple places, we follow the same pattern of setting inReplicationRecovery, plus instantiating a scope guard to unset it.
Additionally, we recursively set the inReplicationRecovery flag, with each call having it's own scope guard to unset the flag. This means the inner scope guard is unsetting the flag while the parent expects the flag to still be set. (See FCBIS setting the flag and then recoverFromOplogAsStandalone calls recoverFromOplog, which also sets the flag).
We should add a RAII type to avoid all this duplication, and ensure only the top level instance unsets the flag.
- related to
-
SERVER-85539 Make getInReplicationRecovery service context decorator atomic
- Closed