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

Eliminate unreachable code related to OP_QUERY in dbclient_rs.cpp

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • QE 2022-06-27

    Description

      There are a few blocks of code in the implementation of DBClientReplicaSet which should only execute if the client is running OP_QUERY operations. As far as I know, there should be know circumstance in which a 6.0+ shell, mongod, or mongos would ever execute an OP_QUERY. Therefore, this code is theoretically unreachable and should be removed:

      The work for this ticket is to confirm that this logic is indeed unreachable, and if so remove it.

      Attachments

        Activity

          People

            david.storch@mongodb.com David Storch
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: