-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
Fully Compatible
-
Repl 2019-10-07
The answer to _checkIfWriteConcernCanBeSatisfied_inlock is rarely changed unless a replSetReconfig happens. Thus, it is more efficient to avoid checking that in ReplicationCoordinatorImpl::_doneWaitingForReplication_inlock. Instead, we should change ReplicationCoordinatorImpl::_setCurrentRSConfig to wake up waiters with ERROR if their writeConcern can no longer be satisfied.
- depends on
-
SERVER-43135 Introduce a future-based API for waiting for write concern
- Closed