diff options
Diffstat (limited to 'src/mongo/db/matcher/rewrite_expr.cpp')
-rw-r--r-- | src/mongo/db/matcher/rewrite_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/rewrite_expr.cpp b/src/mongo/db/matcher/rewrite_expr.cpp index cd82adb7cd0..3ca73b289b0 100644 --- a/src/mongo/db/matcher/rewrite_expr.cpp +++ b/src/mongo/db/matcher/rewrite_expr.cpp @@ -233,7 +233,7 @@ bool RewriteExpr::_canRewriteComparison( const auto& operandList = expression->getOperandList(); bool hasFieldPath = false; - for (auto operand : operandList) { + for (auto& operand : operandList) { if (auto exprFieldPath = dynamic_cast<ExpressionFieldPath*>(operand.get())) { if (exprFieldPath->isVariableReference() || exprFieldPath->isROOT()) { // Rather than a local document field path, this field path refers to either a |