summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression.cpp
diff options
context:
space:
mode:
authorVarun Arora <varun.arora@10gen.com>2018-07-03 18:58:47 -0400
committerVarun Arora <varun.arora@10gen.com>2018-07-25 13:52:38 -0400
commit47a7e08012f57e471dff60d1933192786b54e50d (patch)
tree45c376ab58f9e024362cba5bb617f4cf01babf19 /src/mongo/db/matcher/expression.cpp
parentf8dcc118e636778671a4550d4cf32d2908a0d7ad (diff)
downloadmongo-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.cpp6
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) {}