diff options
author | David Storch <david.storch@10gen.com> | 2016-04-27 15:58:02 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-04-29 10:57:55 -0400 |
commit | 6bd161db45bf3d08bffa0611fdfabbd4c597faff (patch) | |
tree | f62d9aa36370345c218305ad8ed0a48e4736255f /src/mongo/bson/mutable/document-inl.h | |
parent | e1ca46b045b85aaf546eb831448712db0de69b73 (diff) | |
download | mongo-6bd161db45bf3d08bffa0611fdfabbd4c597faff.tar.gz |
SERVER-23689 make $pull respect the collation
Diffstat (limited to 'src/mongo/bson/mutable/document-inl.h')
-rw-r--r-- | src/mongo/bson/mutable/document-inl.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mongo/bson/mutable/document-inl.h b/src/mongo/bson/mutable/document-inl.h index 3307567536e..ec06777e8a5 100644 --- a/src/mongo/bson/mutable/document-inl.h +++ b/src/mongo/bson/mutable/document-inl.h @@ -30,15 +30,19 @@ namespace mongo { namespace mutablebson { -inline int Document::compareWith(const Document& other, bool considerFieldName) const { +inline int Document::compareWith(const Document& other, + bool considerFieldName, + StringData::ComparatorInterface* comparator) const { // We cheat and use Element::compareWithElement since we know that 'other' is a // Document and has a 'hidden' fieldname that is always indentical across all Document // instances. - return root().compareWithElement(other.root(), considerFieldName); + return root().compareWithElement(other.root(), considerFieldName, comparator); } -inline int Document::compareWithBSONObj(const BSONObj& other, bool considerFieldName) const { - return root().compareWithBSONObj(other, considerFieldName); +inline int Document::compareWithBSONObj(const BSONObj& other, + bool considerFieldName, + StringData::ComparatorInterface* comparator) const { + return root().compareWithBSONObj(other, considerFieldName, comparator); } inline void Document::writeTo(BSONObjBuilder* builder) const { |