Details
Description
The replica set monitor manager has a StringMap whose values are weak_ptr<ReplicaSetMonitor>. During the initial handshake, we walk through the map to find which RSM a certain host belongs to. We should check that the RSM still exists before checking whether it contains the host.