-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Fedora 9, MongoDB 0.9.9, mongodb-mongo (0.11.1)
I started a replica pair with server s1 and s2. The server s2 becomes the master.
With the Ruby driver, I set :left to s1 and :right to s2. But the driver raises an exception, saying that s1 is not a master.
Should the driver check the other server to see if this one is the master ?
Here is the code I used:
XGen::Mongo::Driver::Mongo.new({:left => ["127.0.0.1", 27017], :right => ["127.0.0.1", 27018]}, nil, :auto_reconnect => true)