Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-852

Pass read preference to mongos propoerly

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

      When sending queries to a mongos, the following rules apply:

      For mode 'primary', drivers MUST NOT set the slaveOK wire protocol flag and MUST NOT use $readPreference
      For mode 'secondary', drivers MUST set the slaveOK wire protocol flag and MUST also use $readPreference
      For mode 'primaryPreferred', drivers MUST set the slaveOK wire protocol flag and MUST also use $readPreference
      For mode 'secondaryPreferred', drivers MUST set the slaveOK wire protocol flag. If the read preference contains a non-empty tag_sets parameter, drivers MUST use $readPreference; otherwise, drivers MUST NOT use $readPreference
      For mode 'nearest', drivers MUST set the slaveOK wire protocol flag and MUST also use $readPreference

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            emily.stolfo Emily Stolfo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: