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

Coverity analysis defect 134385: Redundant test

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • ALL
    • QO 2022-12-26, QO 2023-01-09

      Redundant test

      By the time the program execution reaches the test of this condition there is only one possible outcome for the test. The code at the destination of this branch is not dead, either because this condition is always true or because there is at least one other branch that reaches it. Test always evaluates the same
      /src/mongo/db/pipeline/visitors/document_source_walker.cpp:98: DEADCODE 134385 At condition "this->visitHelper(ds)", the value of "this->visitHelper(ds)" must be equal to 0.
      /src/mongo/db/pipeline/visitors/document_source_walker.cpp:97: DEADCODE 134385 The condition "this->visitHelper(ds)" cannot be true.

            Assignee:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: