diff options
Diffstat (limited to 'src/mongo/db/index/multikey_paths.h')
-rw-r--r-- | src/mongo/db/index/multikey_paths.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/index/multikey_paths.h b/src/mongo/db/index/multikey_paths.h index b772ecf0d50..4ab25690529 100644 --- a/src/mongo/db/index/multikey_paths.h +++ b/src/mongo/db/index/multikey_paths.h @@ -29,8 +29,8 @@ #pragma once +#include <boost/container/flat_set.hpp> #include <cstddef> -#include <set> #include <vector> namespace mongo { @@ -53,7 +53,8 @@ namespace mongo { // {a: 1, b: 1} none {{}, {}} // {a: 1, b: 1} no multikey metadata {} // +using MultikeyComponents = boost::container::flat_set<std::size_t>; // An empty vector is used to represent that the index doesn't support path-level multikey tracking. -using MultikeyPaths = std::vector<std::set<std::size_t>>; +using MultikeyPaths = std::vector<MultikeyComponents>; } // namespace mongo |