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

Coverity analysis defect 116074: Unused value

    • Query Optimization
    • ALL

      Unused value

      An assigned value that is never used may represent unnecessary computation, an incorrect algorithm, or possibly the need for cleanup or refactoring. A value assigned to a variable is never used.
      /src/mongo/db/cst/cst_pipeline_translation.cpp:664: UNUSED_VALUE 116074 Overwriting previous write to "*&<temporary>" with value from "mongo::cst_pipeline_translation::translateExpression(mongo::CNode const &, boost::intrusive_ptr<mongo::ExpressionContext> const &)::[lambda(mpark::variant<int, long long, double, mongo::Decimal128> const &) (instance 1)]()".
      /src/mongo/db/cst/cst_pipeline_translation.cpp:655: UNUSED_VALUE 116074 Assigning value from "mongo::cst_pipeline_translation::translateExpression(mongo::CNode const &, boost::intrusive_ptr<mongo::ExpressionContext> const &)::[lambda(KeyValue const &) (instance 1)]()" to "*&<temporary>" here, but that stored value is overwritten before it can be used.

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

              Created:
              Updated:
              Resolved: