Currently it sets it any time readPreference is supplied: https://github.com/mongodb/mongo/blob/r3.1.1/src/mongo/db/dbcommands.cpp#L1609-L1613
- is related to
-
SERVER-20743 Sharding code needs to set $secondaryOk on commands targeted at hosts via read preferences other than PrimaryOnly.
- Closed