Default read preference of primary is superseding slaveOk query option when connected to mongos

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Cluster Management
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The driver is setting both the slaveok bit in query options and {$readPreference :

      {"mode" : "primary}

      }, and as of mongos 2.2, the read preference wins and queries are routed to shard primaries.

            Assignee:
            Unassigned
            Reporter:
            Jeffrey Yemin
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: