Coverity analysis defect 137987: Logically dead code

XMLWordPrintableJSON

    • Query Integration
    • Fully Compatible
    • ALL
    • QI 2023-05-15, QI 2023-05-29
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: