diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2021-03-18 20:39:55 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-09 15:53:25 +0000 |
commit | 0e967d6ed33cdf9eb8314e6ae3fb3e2261e213d7 (patch) | |
tree | 9a74cb4ea7fffee339a1b1ecc8505e67b901ac87 /src/mongo/db/matcher | |
parent | 6a09a2b69726407c07521be98baaf5ba6c86373f (diff) | |
download | mongo-0e967d6ed33cdf9eb8314e6ae3fb3e2261e213d7.tar.gz |
SERVER-53638 Enable pushdown of config.cache.chunks $lookup through $sort
Co-authored-by: Yuhong Zhang <danielzhangyh@gmail.com>
Diffstat (limited to 'src/mongo/db/matcher')
-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 660073d5a8a..a523853a639 100644 --- a/src/mongo/db/matcher/rewrite_expr.cpp +++ b/src/mongo/db/matcher/rewrite_expr.cpp @@ -233,7 +233,7 @@ bool RewriteExpr::_canRewriteComparison( for (auto operand : operandList) { if (auto exprFieldPath = dynamic_cast<ExpressionFieldPath*>(operand.get())) { - if (!exprFieldPath->isRootFieldPath()) { + if (exprFieldPath->isVariableReference()) { // This field path refers to a variable rather than a local document field path. return false; } |