Details
-
Bug
-
Resolution: Done
-
Major - P3
-
2.2.0-rc0
-
None
-
ALL
Description
massert( 15899, str::stream() << "No suitable secondary found for slaveOk query in replica set: "
|
<< _name, _master >= 0 && _nodes[_master].ok ); // <----------- _master can be out of bounds here
|
|
|
// Fall back to primary
|
verify( static_cast<unsigned>(_master) < _nodes.size() );
|
and here (ReplicaSetMonitor::_check):
probablePrimaryIdx = _find_inlock( maybePrimary );
|
probablePrimaryConn = _nodes[probablePrimaryIdx].conn;
|
Attachments
Issue Links
- is related to
-
SERVER-6512 ReplicaSetMonitor::_checkConnection does not check upper bounds for the indexes
-
- Closed
-