lib/mongo/cluster/sdam_flow.rb
def add_servers_from_desc(updated_desc)
      added_servers = []
      address_strs = servers_list.map(&:address).map(&:to_s)
      %w(hosts passives arbiters).each do |m|
        updated_desc.send(m).each do |address_str|
          if server = cluster.add(address_str, monitor: false)
            added_servers << server
          end
        end
      end
      added_servers
    end
# Adds all servers referenced in the given description (which is
# supposed to have come from a good primary) which are not
# already in the cluster, to the cluster.
#
# @note Servers are added unmonitored. Monitoring must be started later
# separately.
#
# @return [ Array<Server> ] Servers actually added to the cluster.
#   This is the set of servers on which monitoring should be started.
Adds all servers referenced in the given description (which is
supposed to have come from a good primary) which are not
already in the cluster, to the cluster.
Adds all servers referenced in the given description ( which is supposed to have come from a good primary ) which are not already in the cluster to the cluster .
def add_servers_from_desc(updated_desc)
      added_servers = []
      address_strs = servers_list.map(&:address).map(&:to_s)
      %w(hosts passives arbiters).each do |m|
        updated_desc.send(m).each do |address_str|
          if server = cluster.add(address_str, monitor: false)
            added_servers << server
          end
        end
      end
      added_servers
    end
def add_servers_from_desc ( updated_desc ) added_servers = [ ] address_strs = servers_list . map ( & :address ) . map ( & :to_s ) %w( hosts passives arbiters ) . each do | m | updated_desc . send ( m ) . each do | address_str | if server = cluster . add ( address_str , monitor : false ) added_servers << server end end end added_servers end
Adds all servers referenced in the given description (which is
supposed to have come from a good primary) which are not
already in the cluster, to the cluster.
Adds all servers referenced in the given description ( which is supposed to have come from a good primary ) which are not already in the cluster to the cluster .
Servers actually added to the cluster. This is the set of servers on which monitoring should be started.
Servers actually added to the cluster . This is the set of servers on which monitoring should be started .
 Array<Server> 
updated_desc
note
Servers are added unmonitored. Monitoring must be started later separately.
Servers are added unmonitored . Monitoring must be started later separately .