diff options
author | Varun Arora <varun.arora@10gen.com> | 2018-07-03 18:58:47 -0400 |
---|---|---|
committer | Varun Arora <varun.arora@10gen.com> | 2018-07-25 13:52:38 -0400 |
commit | 47a7e08012f57e471dff60d1933192786b54e50d (patch) | |
tree | 45c376ab58f9e024362cba5bb617f4cf01babf19 /src/mongo/db/matcher/expression.cpp | |
parent | f8dcc118e636778671a4550d4cf32d2908a0d7ad (diff) | |
download | mongo-47a7e08012f57e471dff60d1933192786b54e50d.tar.gz |
SERVER-35891 add failpoints to disable aggregation optimizations
Diffstat (limited to 'src/mongo/db/matcher/expression.cpp')
-rw-r--r-- | src/mongo/db/matcher/expression.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/matcher/expression.cpp b/src/mongo/db/matcher/expression.cpp index 5039b805745..0c0efc660cd 100644 --- a/src/mongo/db/matcher/expression.cpp +++ b/src/mongo/db/matcher/expression.cpp @@ -35,6 +35,12 @@ namespace mongo { +/** + * Enabling the disableMatchExpressionOptimization fail point will stop match expressions from + * being optimized. + */ +MONGO_FAIL_POINT_DEFINE(disableMatchExpressionOptimization); + using std::string; MatchExpression::MatchExpression(MatchType type) : _matchType(type) {} |