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

Coverity analysis defect 121575: Redundant test

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • None
    • None
    • Query Optimization
    • 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/db/modules/enterprise/src/fle/query_analysis/resolved_encryption_info.cpp:89: DEADCODE 121575 At condition "this->algorithmIs(mongo::Fle2AlgorithmInt::kUnindexed)", the value of "this->algorithmIs(mongo::Fle2AlgorithmInt::kUnindexed)" must be equal to 0.
      /src/mongo/db/modules/enterprise/src/fle/query_analysis/resolved_encryption_info.cpp:89: DEADCODE 121575 The condition "this->algorithmIs(mongo::Fle2AlgorithmInt::kUnindexed)" cannot be true.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: