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

Coverity analysis defect 121638: Redundant test

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • ALL
    • QE 2022-03-07, QE 2022-03-21

      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/pipeline_d.cpp:181: DEADCODE 121638 At condition "lookupFeatureFlagEnabled", the value of "lookupFeatureFlagEnabled" must be equal to 1.
      /src/mongo/db/pipeline/pipeline_d.cpp:162: DEADCODE 121638 Condition "lookupFeatureFlagEnabled", taking true branch. Now the value of "lookupFeatureFlagEnabled" is equal to 1.
      /src/mongo/db/pipeline/pipeline_d.cpp:181: DEADCODE 121638 The condition "lookupFeatureFlagEnabled" must be true.

            Assignee:
            mihai.andrei@mongodb.com Mihai Andrei
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: