From f3be5348457ff71185ca9fa137ab7c1a8e4761df Mon Sep 17 00:00:00 2001 From: David Storch Date: Mon, 22 Aug 2016 16:41:50 -0400 Subject: SERVER-24508 delete BSONObjCmp Instead, use BSONObj::ComparatorInterface. --- src/mongo/db/catalog/collection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mongo/db/catalog') diff --git a/src/mongo/db/catalog/collection.cpp b/src/mongo/db/catalog/collection.cpp index 93e3a046fe6..de28926819a 100644 --- a/src/mongo/db/catalog/collection.cpp +++ b/src/mongo/db/catalog/collection.cpp @@ -39,6 +39,7 @@ #include "mongo/base/counter.h" #include "mongo/base/owned_pointer_map.h" #include "mongo/bson/ordering.h" +#include "mongo/bson/simple_bsonobj_comparator.h" #include "mongo/db/background.h" #include "mongo/db/catalog/collection_catalog_entry.h" #include "mongo/db/catalog/database_catalog_entry.h" @@ -1053,7 +1054,7 @@ public: } } - BSONObjSet documentKeySet; + BSONObjSet documentKeySet = SimpleBSONObjComparator::kInstance.makeBSONObjSet(); // There's no need to compute the prefixes of the indexed fields that cause the // index to be multikey when validating the index keys. MultikeyPaths* multikeyPaths = nullptr; -- cgit v1.2.1