On this page本页内容
Mongo.
getSecondaryOk
Indicates whether the MongoDB connection allows read operations on secondary members.
True
false
This example calls getSecondaryOk():
getSecondaryOk()
db.getMongo().getSecondaryOk()
See also参阅
Mongo.setSecondaryOk()
rs.secondaryOk()