The canAcceptWritesForDatabase function doesn't accquire the ReplicationCoordinatorImpl::_mutex.
The acquisition of this lock as part of this code seems to be the reason why we had a performance drop in this micro-benchmark.
The canAcceptWritesForDatabase function doesn't accquire the ReplicationCoordinatorImpl::_mutex.
The acquisition of this lock as part of this code seems to be the reason why we had a performance drop in this micro-benchmark.