From 311623d81d111a2f7a8c8db7f5e2c75221112a6c Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Tue, 28 Feb 2012 11:14:48 -0500 Subject: [PATCH] minor: :name is a valid ReplSetConnection option --- lib/mongo/repl_set_connection.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/mongo/repl_set_connection.rb b/lib/mongo/repl_set_connection.rb index 55ce07c..059e0f5 100644 --- a/lib/mongo/repl_set_connection.rb +++ b/lib/mongo/repl_set_connection.rb @@ -21,7 +21,8 @@ module Mongo # Instantiates and manages connections to a MongoDB replica set. class ReplSetConnection < Connection - REPL_SET_OPTS = [:read, :refresh_mode, :refresh_interval, :require_primary, :read_secondary, :rs_name] + REPL_SET_OPTS = [:read, :refresh_mode, :refresh_interval, :require_primary, + :read_secondary, :rs_name, :name] attr_reader :replica_set_name, :seeds, :refresh_interval, :refresh_mode, :refresh_version @@ -35,7 +36,7 @@ module Mongo # # @param [Array] seeds "host:port" strings # - # @option opts [String] :rs_name (nil) The name of the replica set to connect to. You + # @option opts [String] :name (nil) The name of the replica set to connect to. You # can use this option to verify that you're connecting to the right replica set. # @option opts [Boolean, Hash] :safe (false) Set the default safe-mode options # propogated to DB objects instantiated off of this Connection. This