From 6b641e86656df78e9f7ad2f364dec35e19df332e Mon Sep 17 00:00:00 2001 From: Henrik Edin Date: Fri, 30 Nov 2018 11:14:16 -0500 Subject: SERVER-38249 Implement stdx unordered_map and unordered_set as absl node hash map/set. Remove stdx::unordered_multimap and multiset. Custom hashers to stdx::unordered_map are not trusted by default, we will rehash the produced hash with absl again to ensure we have a good hash function. --- src/mongo/dbtests/commandtests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/dbtests') diff --git a/src/mongo/dbtests/commandtests.cpp b/src/mongo/dbtests/commandtests.cpp index f7212764304..08c24bc60d2 100644 --- a/src/mongo/dbtests/commandtests.cpp +++ b/src/mongo/dbtests/commandtests.cpp @@ -349,9 +349,9 @@ public: bool ok = db.runCommand(nsDb(), BSON("rolesInfo" << 1), result); ASSERT(ok); - stdx::unordered_set observedFields; + StringSet observedFields; for (const auto& field : result) { - ASSERT(observedFields.find(field) == observedFields.end()); + ASSERT(observedFields.find(field.fieldNameStringData()) == observedFields.end()); observedFields.insert(field); } } -- cgit v1.2.1