-
Type:
Bug
-
Resolution: Done
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Environment:mongodb 1.6.3, pymongo 1.8.1, python 2.6
-
None
-
None
-
None
-
None
-
None
-
None
-
None
I have a replica set db.
When using rs.stepDown() on the master then pymongo doesn't give the expected result (it stays connected to the old master which have now become slave).
File "/home/jens/buildout-cache/eggs/pymongo-1.8.1-py2.6-linux-x86_64.egg/pymongo/cursor.py", line 371, in count
**command)
File "/home/jens/buildout-cache/eggs/pymongo-1.8.1-py2.6-linux-x86_64.egg/pymongo/database.py", line 294, in command
(command, result["errmsg"]))
OperationFailure: command SON([('count', u'baseuser'), ('query',
), ('fields', None)]) failed: not master