summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/modifier_pull.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2016-04-27 15:58:02 -0400
committerDavid Storch <david.storch@10gen.com>2016-04-29 10:57:55 -0400
commit6bd161db45bf3d08bffa0611fdfabbd4c597faff (patch)
treef62d9aa36370345c218305ad8ed0a48e4736255f /src/mongo/db/ops/modifier_pull.h
parente1ca46b045b85aaf546eb831448712db0de69b73 (diff)
downloadmongo-6bd161db45bf3d08bffa0611fdfabbd4c597faff.tar.gz
SERVER-23689 make $pull respect the collation
Diffstat (limited to 'src/mongo/db/ops/modifier_pull.h')
-rw-r--r--src/mongo/db/ops/modifier_pull.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/ops/modifier_pull.h b/src/mongo/db/ops/modifier_pull.h
index 957750518f0..f6618f17155 100644
--- a/src/mongo/db/ops/modifier_pull.h
+++ b/src/mongo/db/ops/modifier_pull.h
@@ -36,6 +36,7 @@
namespace mongo {
+class CollatorInterface;
class MatchExpression;
class ModifierPull : public ModifierInterface {
@@ -77,6 +78,10 @@ private:
std::unique_ptr<MatchExpression> _matchExpr;
bool _matcherOnPrimitive;
+ // The collator which must be used for matching strings. Null if we should use a simple binary
+ // comparison.
+ CollatorInterface* _collator = nullptr;
+
struct PreparedState;
std::unique_ptr<PreparedState> _preparedState;
};