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

Stop putting $readPreference inside of $queryOptions in mongos

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code, Sharding
    • Query Execution
    • QE 2023-02-06, QE 2023-02-20, QE 2023-07-24, QE 2023-08-07, QE 2023-08-21, QE 2023-09-04, QE 2024-09-30, QE 2024-10-14, QE 2024-10-28, QE 2024-11-11, QE 2024-11-25

      Mongos currently wraps the $readPreference field inside of a $queryOptions object. Instead it should just put $readPreference at the top-level of the command, matching the format used by OP_MSG.

            Assignee:
            jorgen.edelbo@mongodb.com Jørgen Edelbo
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            2 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: