diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-03-24 13:54:25 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-05-02 10:23:51 -0400 |
commit | 1c5be329f5e3903d5cd4e9d106022733507b5e3f (patch) | |
tree | 14fb8dc680efd0dac4fe4967a98e692c121852c5 /src/mongo/dbtests/namespacetests.cpp | |
parent | ef7e7261f934d2b29c9a1cbf7731a4f733e91627 (diff) | |
download | mongo-1c5be329f5e3903d5cd4e9d106022733507b5e3f.tar.gz |
SERVER-23092 Collation-aware index key generation
Diffstat (limited to 'src/mongo/dbtests/namespacetests.cpp')
-rw-r--r-- | src/mongo/dbtests/namespacetests.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/dbtests/namespacetests.cpp b/src/mongo/dbtests/namespacetests.cpp index eadb0a4d85e..e7f7a1220db 100644 --- a/src/mongo/dbtests/namespacetests.cpp +++ b/src/mongo/dbtests/namespacetests.cpp @@ -101,7 +101,8 @@ public: // Call getKeys on the nullObj. BSONObjSet nullFieldKeySet; - ExpressionKeysPrivate::getHashKeys(nullObj, "a", 0, 0, false, &nullFieldKeySet); + CollatorInterface* collator = nullptr; + ExpressionKeysPrivate::getHashKeys(nullObj, "a", 0, 0, false, collator, &nullFieldKeySet); BSONElement nullFieldFromKey = nullFieldKeySet.begin()->firstElement(); ASSERT_EQUALS(ExpressionKeysPrivate::makeSingleHashKey(nullObj.firstElement(), 0, 0), @@ -127,7 +128,9 @@ public: BSONObj nullObj = BSON("a" << BSONNULL); BSONObjSet nullFieldKeySet; - ExpressionKeysPrivate::getHashKeys(nullObj, "a", 0x5eed, 0, false, &nullFieldKeySet); + CollatorInterface* collator = nullptr; + ExpressionKeysPrivate::getHashKeys( + nullObj, "a", 0x5eed, 0, false, collator, &nullFieldKeySet); BSONElement nullFieldFromKey = nullFieldKeySet.begin()->firstElement(); ASSERT_EQUALS(ExpressionKeysPrivate::makeSingleHashKey(nullObj.firstElement(), 0x5eed, 0), |