-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
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.
- related to
-
SERVER-49363 Triage Coverity Issues for Query code base
- Closed