Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
2.2.3
-
None
-
ALL
Description
tryToGoLiveAsASecondary needs to take a write lock. Otherwise, we could become primary between lines 562 and 590 of rs_sync.cpp and then immediately become a secondary, not closing connections if anyone is syncing from us (which they may have been simply doing already through chained replication).
Attachments
Issue Links
- related to
-
SERVER-8557 Audit replica set state transitions
-
- Closed
-