-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: manual
-
Environment:*Location*: https://docs.mongodb.com/manual/reference/method/Mongo.setReadPref/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
*Referrer*: https://docs.mongodb.com/manual/tutorial/write-scripts-for-the-mongo-shell/
*Screen Resolution*: 1920 x 1200
*Location*: https://docs.mongodb.com/manual/reference/method/Mongo.setReadPref/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 *Referrer*: https://docs.mongodb.com/manual/tutorial/write-scripts-for-the-mongo-shell/ *Screen Resolution*: 1920 x 1200
The behavior of specifying a secondary read preference should be clarified here, to note that when connect to the primary via the mongo shell, calling setReadPref("secondary") will not route queries to secondary.