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

Coverity analysis defect 122176: Redundant test

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
    • Query Execution
    • ALL

      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/storage/column_store.h:429: DEADCODE 122176 Condition "208 >= firstByte", taking true branch. Now the value of "firstByte" is at most 208.
      /src/mongo/db/storage/column_store.h:429: DEADCODE 122176 Condition "firstByte <= 239", taking true branch. Now the value of "firstByte" is at most 208.
      /src/mongo/db/storage/column_store.h:435: DEADCODE 122176 Condition "208 <= firstByte", taking false branch. Now the value of "firstByte" is at most 207.
      /src/mongo/db/storage/column_store.h:440: DEADCODE 122176 When switching on "firstByte", the value of "firstByte" must be at most 207.
      /src/mongo/db/storage/column_store.h:449: DEADCODE 122176 The "switch" governing value "firstByte" cannot be "239".
      /src/mongo/db/storage/column_store.h:449: DEADCODE 122176 Execution cannot reach this statement: "case 239:".

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: