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

Eliminate ServerSelectionMetadata in favor of just using ReadPreferenceSetting

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.7
    • Affects Version/s: None
    • Component/s: Networking, Sharding
    • Labels:
      None
    • Fully Compatible
    • Repl 2017-05-08, Repl 2017-05-29
    • 0

      ServerSelectionMetadata is just a ReadPreferenceSetting + secondaryOk. Since secondaryOk is equivalent to ReadPreference SecondaryPreferred, it is simpler to translate it so we have a single source of truth. This is part of the OP_MSG spec which specifies using $readPreference rather than $ssm. The $ssm metadata field will still be used when communicating with 3.4 nodes over OP_COMMAND, but it will be translated at the border.

      As part of this work, ReadPreferenceSetting will be attached to the OperationContext on mongos in the same way that it is in mongod.

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: