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

Coverity analysis defect 121575: Redundant test

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Query Optimization
    • Fully Compatible
    • ALL

      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.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: