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

Coverity analysis defect 122176: Redundant test

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Internal Code
    • ALL

    Description

      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:".

      Attachments

        Issue Links

          Activity

            People

              backlog-query-execution Backlog - Query Execution
              xgen-internal-coverity Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: