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

Stop upconverting from legacy opcodes in DBClientBase

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability

      DBClientBase constructs commands using the logic meant to upconvert legacy OP_QUERY commands rather than just producing OP_MSG encoded messages directly. We should update it to stop doing this so we can delete some of this legacy code.

      https://github.com/10gen/mongo/blob/a5f44838e110d0da7b9ceaa083b343f8b43b08f3/src/mongo/client/dbclient_base.cpp#L264-L269

      As part of this, we may need to change the mongo runCommand helpers, as they currently use flags like SecondaryOK for specifying secondary read preferences.

            Assignee:
            Unassigned Unassigned
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: