rs.slaveOk()
- db.getMongo().setSlaveOk()
This allows the current connection to allow read operations to runon secondary members. See the readPref()
method for more fine-grained control overread preference in themongo
shell.
- db.getMongo().setSlaveOk()
This allows the current connection to allow read operations to runon secondary members. See the readPref()
method for more fine-grained control overread preference in themongo
shell.
本文档使用 BookStack 构建