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

Coverity analysis defect 114464: Redundant test

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • 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/client/sdam/server_selector.cpp:259: DEADCODE 114464 At condition "result", the value of "result" must be equal to 1.
      /src/mongo/client/sdam/server_selector.cpp:255: DEADCODE 114464 Assigning: "result" = "true".
      /src/mongo/client/sdam/server_selector.cpp:258: DEADCODE 114464 The condition "result" must be true.

      Attachments

        Activity

          People

            lamont.nelson@mongodb.com Lamont Nelson
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: