Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-18194

Commands shouldn't set slaveOk flag for readPreference=PRIMARY

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding B (10/30/15)

      Currently it sets it any time readPreference is supplied: https://github.com/mongodb/mongo/blob/r3.1.1/src/mongo/db/dbcommands.cpp#L1609-L1613

            Assignee:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: