summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/modifier_pull.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ops/modifier_pull.cpp')
-rw-r--r--src/mongo/db/ops/modifier_pull.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/ops/modifier_pull.cpp b/src/mongo/db/ops/modifier_pull.cpp
index f3adc0e3538..bb18a80b723 100644
--- a/src/mongo/db/ops/modifier_pull.cpp
+++ b/src/mongo/db/ops/modifier_pull.cpp
@@ -31,7 +31,6 @@
#include "mongo/base/error_codes.h"
#include "mongo/bson/mutable/algorithm.h"
#include "mongo/db/matcher/expression_parser.h"
-#include "mongo/db/matcher/extensions_callback_disallow_extensions.h"
#include "mongo/db/query/collation/collator_interface.h"
#include "mongo/db/update/field_checker.h"
#include "mongo/db/update/log_builder.h"
@@ -123,9 +122,8 @@ Status ModifierPull::init(const BSONElement& modExpr, const Options& opts, bool*
}
// Build the matcher around the object we built above. Currently, we do not allow $pull
- // operations to contain $text/$where clauses, so preserving this behaviour.
- StatusWithMatchExpression parseResult = MatchExpressionParser::parse(
- _exprObj, ExtensionsCallbackDisallowExtensions(), _collator);
+ // operations to contain $text/$where/$geoNear/$near/$nearSphere/$expr clauses.
+ StatusWithMatchExpression parseResult = MatchExpressionParser::parse(_exprObj, _collator);
if (!parseResult.isOK()) {
return parseResult.getStatus();
}