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

Coverity analysis defect 134024: Redundant test

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2022-12-12, Execution Team 2022-12-26

    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/timeseries/timeseries_options.cpp:141: DEADCODE 134024 At condition "allowSecondsParameters", the value of "allowSecondsParameters" must be equal to 1.
      /src/mongo/db/timeseries/timeseries_options.cpp:134: DEADCODE 134024 Condition "allowSecondsParameters", taking true branch. Now the value of "allowSecondsParameters" is equal to 1.
      /src/mongo/db/timeseries/timeseries_options.cpp:141: DEADCODE 134024 The condition "allowSecondsParameters" must be true.

      Attachments

        Activity

          People

            fausto.leyva@mongodb.com Fausto Leyva (Inactive)
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: