Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
Description
RunCommand/RunCommandCursor use the read preference to create a server selector. In addition to this, they should pass it down to the operations layer so a $readPreference can be added to the command. This is important when connected to a sharded cluster because mongos relies on the $readPreference field in the command to select a server.