Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1713

RunCommand does not pass read preference to operations layer

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.1
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: