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

RunCommand does not pass read preference to operations layer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.1
    • Component/s: None
    • Security Level: Public
    • Labels:
      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.

        Attachments

          Activity

            People

            Assignee:
            divjot.arora Divjot Arora
            Reporter:
            divjot.arora Divjot Arora
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: