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

Coverity analysis defect 122006: Redundant test

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • ALL
    • Execution Team 2022-05-16

      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/exec/batched_delete_stage.cpp:269: DEADCODE 122006 At condition "ret == mongo::PlanStage::NEED_TIME", the value of "ret" must be equal to 2.
      /src/mongo/db/exec/batched_delete_stage.cpp:269: DEADCODE 122006 Condition "ret != mongo::PlanStage::NEED_TIME", taking false branch. Now the value of "ret" is equal to 2.
      /src/mongo/db/exec/batched_delete_stage.cpp:269: DEADCODE 122006 The condition "ret == mongo::PlanStage::NEED_TIME" must be true.

        1. Capture.PNG
          41 kB
          Kyle Suarez

            Assignee:
            haley.connelly@mongodb.com Haley Connelly
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: