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

Coverity analysis defect 137987: Logically dead code

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible
    • ALL
    • QI 2023-05-15, QI 2023-05-29

      Logically dead code

      The indicated dead code may have performed some action; that action will never occur. Code can never be reached because of a logical contradiction
      /src/mongo/db/query/telemetry.cpp:378: DEADCODE 137987 Condition "redactIdentifiers", taking true branch. Now the value of "redactIdentifiers" is equal to 1.
      /src/mongo/db/query/telemetry.cpp:404: DEADCODE 137987 Condition "redactIdentifiers", taking true branch. Now the value of "redactIdentifiers" is equal to 1.
      /src/mongo/db/query/telemetry.cpp:421: DEADCODE 137987 At condition "redactIdentifiers", the value of "redactIdentifiers" must be equal to 1.
      /src/mongo/db/query/telemetry.cpp:421: DEADCODE 137987 The condition "redactIdentifiers" must be true.
      /src/mongo/db/query/telemetry.cpp:425: DEADCODE 137987 Execution cannot reach this statement: "<temporary>.BSONObj(key);".

            Assignee:
            will.buerger@mongodb.com Will Buerger
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: