Method: Mongo::Cluster::SdamFlow#update_unknown_with_standalone
- Defined in:
- lib/mongo/cluster/sdam_flow.rb
#update_unknown_with_standalone ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Transitions from unknown to single topology type, when a standalone server is discovered.
200 201 202 203 204 205 206 207 208 209 210 |
# File 'lib/mongo/cluster/sdam_flow.rb', line 200 def update_unknown_with_standalone if seeds.length == 1 @topology = Topology::Single.new( topology., topology.monitoring, self) else log_warn( "Removing server #{updated_desc.address.to_s} because it is a standalone and we have multiple seeds (#{seeds.length})" ) remove end end |