lib/mongo/cluster/sdam_flow.rb
# Transitions from unknown to single topology type, when a standalone
# server is discovered.
Transitions from unknown to single topology type, when a standalone
server is discovered.
Transitions from unknown to single topology type when a standalone server is discovered .
def update_unknown_with_standalone
      if seeds.length == 1
        @topology = Topology::Single.new(
          topology.options, 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
def update_unknown_with_standalone if seeds . length == 1 @topology = Topology :: Single . new ( topology . options , 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
Transitions from unknown to single topology type, when a standalone
server is discovered.
Transitions from unknown to single topology type when a standalone server is discovered .