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

Coverity analysis defect 134024: Redundant test

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • Execution Team 2022-12-12, Execution Team 2022-12-26

      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.

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

              Created:
              Updated:
              Resolved: