Details
-
Question
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
Description
Hello,
I am new user in MongoDB. When i query db.getUsers() get following error. How can i resolve this problem?
rs0:SECONDARY> db.getUsers()
2016-02-08T14:47:44.267+0400 E QUERY [thread1] Error: not master and slaveOk=false :
_getErrorWithCode@src/mongo/shell/utils.js:23:13
DB.prototype.getUsers@src/mongo/shell/db.js:1466:1
@(shell):1:1