summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_algo.cpp
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2016-04-08 15:07:20 -0400
committerTess Avitabile <tess.avitabile@mongodb.com>2016-04-13 10:05:36 -0400
commit4c1e3619a67041f589eb65da29a146629e88e280 (patch)
treee02298ac73578110888c90a492e9e0d63f54b0b8 /src/mongo/db/matcher/expression_algo.cpp
parent56a903eb64f5b9865f1b54b90334f02cb5adf6dd (diff)
downloadmongo-4c1e3619a67041f589eb65da29a146629e88e280.tar.gz
SERVER-23348 Add a collator to ComparisonMatchExpression, InMatchExpression
Diffstat (limited to 'src/mongo/db/matcher/expression_algo.cpp')
-rw-r--r--src/mongo/db/matcher/expression_algo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression_algo.cpp b/src/mongo/db/matcher/expression_algo.cpp
index 79059c204d1..39f22830480 100644
--- a/src/mongo/db/matcher/expression_algo.cpp
+++ b/src/mongo/db/matcher/expression_algo.cpp
@@ -154,7 +154,8 @@ bool _isSubsetOf(const MatchExpression* lhs, const ComparisonMatchExpression* rh
}
for (BSONElement elem : arrayEntries.equalities()) {
// Each element in the $in-array represents an equality predicate.
- EqualityMatchExpression equality;
+ // TODO SERVER-23618: pass the appropriate collator to EqualityMatchExpression().
+ EqualityMatchExpression equality(nullptr);
equality.init(lhs->path(), elem);
if (!_isSubsetOf(&equality, rhs)) {
return false;