-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Documentation
-
None
Clarify the intent and read preference used by the MongoCollection.runCommand methods.
Where the commands are run are based on if a read preference is supplied:
method | read preference | use case |
---|---|---|
runCommand(Bson command) | primary | run write commands. eg. create index, create collection, drop collection etc.. |
runCommand(Bson command, ReadPreference readPreference) | as supplied | run any commands with the supplied readPreference. eg dbstats, profile, ismaster etc.. |
Add examples to the quick-tour-admin.md, needs to be done in async also.
- is related to
-
JAVA-1801 impossible to get profile status from Secondary
- Closed