summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/storage_timestamp_tests.cpp
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2020-04-06 10:05:56 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-08 21:33:40 +0000
commit6ef4109428abf1afe7ee73d42155d20cf1966fc0 (patch)
treee80d4aa1bfe76b9eea600e82b71bb008d82a37ad /src/mongo/dbtests/storage_timestamp_tests.cpp
parentf79261579283f48d186925e7e9450917a8622e5c (diff)
downloadmongo-6ef4109428abf1afe7ee73d42155d20cf1966fc0.tar.gz
SERVER-47349 Use flat_set instead of set for KeyStringSet and MultikeyPaths
So we can reduce the amount of small memory allocations and re-use allocated memory.
Diffstat (limited to 'src/mongo/dbtests/storage_timestamp_tests.cpp')
-rw-r--r--src/mongo/dbtests/storage_timestamp_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/storage_timestamp_tests.cpp b/src/mongo/dbtests/storage_timestamp_tests.cpp
index cd064e00b9c..1b050e9e492 100644
--- a/src/mongo/dbtests/storage_timestamp_tests.cpp
+++ b/src/mongo/dbtests/storage_timestamp_tests.cpp
@@ -1957,7 +1957,7 @@ public:
ASSERT(indexMetaData.multikey);
ASSERT_EQ(std::size_t(1), indexMetaData.multikeyPaths.size());
- const bool match = indexMetaData.multikeyPaths[0] == std::set<std::size_t>({0});
+ const bool match = indexMetaData.multikeyPaths[0] == MultikeyComponents({0});
if (!match) {
FAIL(str::stream() << "Expected: [ [ 0 ] ] Actual: "
<< dumpMultikeyPaths(indexMetaData.multikeyPaths));