# File lib/mongo/util/node.rb, line 166
    def check_set_name(config)
      if @client.replica_set_name
        if !config['setName']
          @client.log(:warn, "Could not verify replica set name for member #{host_string} " +
            "because ismaster does not return name in this version of MongoDB")
        elsif @client.replica_set_name != config['setName']
          message = "Attempting to connect to replica set '#{config['setName']}' on member #{host_string} " +
            "but expected '#{@client.replica_set_name}'"
          raise ReplicaSetConnectionError, message
        end
      end
    end