diff options
author | David Storch <david.storch@10gen.com> | 2016-09-06 18:16:43 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-09-09 15:05:13 -0400 |
commit | 613134ad5960767276df350db1f90cc919225dd5 (patch) | |
tree | b3af405211503717a2524813237734b3af2613a8 /src/mongo/db/pipeline | |
parent | f6397011fa6f607a80a6bde1408bf6afddaf20a7 (diff) | |
download | mongo-613134ad5960767276df350db1f90cc919225dd5.tar.gz |
SERVER-23990 move BSONObj/BSONElement hashing into {BSONObj,BSONElement}::ComparatorInterface
Diffstat (limited to 'src/mongo/db/pipeline')
-rw-r--r-- | src/mongo/db/pipeline/value.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/value.cpp b/src/mongo/db/pipeline/value.cpp index 5eea4d314d1..f6cd179f1a6 100644 --- a/src/mongo/db/pipeline/value.cpp +++ b/src/mongo/db/pipeline/value.cpp @@ -37,6 +37,7 @@ #include "mongo/base/compare_numbers.h" #include "mongo/base/data_type_endian.h" #include "mongo/base/simple_string_data_comparator.h" +#include "mongo/bson/simple_bsonobj_comparator.h" #include "mongo/db/jsobj.h" #include "mongo/db/pipeline/document.h" #include "mongo/platform/decimal128.h" @@ -928,8 +929,8 @@ void Value::hash_combine(size_t& seed, case CodeWScope: { intrusive_ptr<const RCCodeWScope> cws = _storage.getCodeWScope(); - boost::hash_combine(seed, SimpleStringDataComparator::kInstance.hash(cws->code)); - boost::hash_combine(seed, BSONObj::Hasher()(cws->scope)); + SimpleStringDataComparator::kInstance.hash_combine(seed, cws->code); + SimpleBSONObjComparator::kInstance.hash_combine(seed, cws->scope); break; } } |