When connected directly to a secondary, do not coerce ReadPreference to Primary.

XMLWordPrintableJSON

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

      In accordance with the ReadPreference spec the driver coerces the ReadPreference to Primary for any command that is not allowed to be sent to a secondary.

      However, since this was implemented, the ReadPreference spec has been amended to state that this coercion should only happen when connected to a replica set. In particular, it should NOT be done when connected directly to a secondary.

            Assignee:
            Robert Stam
            Reporter:
            Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: