summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/expression.h
diff options
context:
space:
mode:
authorAlexander Ignatyev <alexander.ignatyev@mongodb.com>2021-08-04 13:21:55 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-08-10 11:24:50 +0000
commitb90a2a93631d94fd710338ac688e035e634cfe6a (patch)
tree40417731dbffbd845c0d8c5d1305a55e334269bd /src/mongo/db/pipeline/expression.h
parent1242fd1ee165d803fde22974aa232ebaec342c0e (diff)
downloadmongo-b90a2a93631d94fd710338ac688e035e634cfe6a.tar.gz
SERVER-55297 Optimize ExpressionCond in case of constant condition
Diffstat (limited to 'src/mongo/db/pipeline/expression.h')
-rw-r--r--src/mongo/db/pipeline/expression.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/expression.h b/src/mongo/db/pipeline/expression.h
index d81550c54ce..87abdbbda7d 100644
--- a/src/mongo/db/pipeline/expression.h
+++ b/src/mongo/db/pipeline/expression.h
@@ -1301,6 +1301,7 @@ public:
Value evaluate(const Document& root, Variables* variables) const final;
const char* getOpName() const final;
+ boost::intrusive_ptr<Expression> optimize() final;
static boost::intrusive_ptr<Expression> parse(ExpressionContext* expCtx,
BSONElement expr,