summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2017-08-01 15:40:36 -0400
committerDavid Storch <david.storch@10gen.com>2017-08-02 16:54:56 -0400
commit0334cb2bf602ec0123594b59504b9b3e0a099899 (patch)
tree432c8463e9e7273ec2f11978c5dcbc47e363ba84 /src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp
parentf38554ab9fd611bb798812e4eb1fa7e3d3bbb7e3 (diff)
downloadmongo-0334cb2bf602ec0123594b59504b9b3e0a099899.tar.gz
SERVER-30245 Make ArrayMatchingMatchExpression inherit from PathMatchExpression.
Diffstat (limited to 'src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp')
-rw-r--r--src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp b/src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp
index a03ce13349a..21fd5b6a7fc 100644
--- a/src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp
+++ b/src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp
@@ -51,10 +51,11 @@ bool InternalSchemaXorMatchExpression::matches(const MatchableDocument* doc,
return found;
}
-bool InternalSchemaXorMatchExpression::matchesSingleElement(const BSONElement& element) const {
+bool InternalSchemaXorMatchExpression::matchesSingleElement(const BSONElement& element,
+ MatchDetails* details) const {
bool found = false;
for (size_t i = 0; i < numChildren(); i++) {
- if (getChild(i)->matchesSingleElement(element)) {
+ if (getChild(i)->matchesSingleElement(element, details)) {
if (found) {
return false;
}