diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2016-05-08 14:16:24 -0400 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2016-05-08 14:16:24 -0400 |
commit | 65222c4b5146cc6b8930e784149e5aade132a8fc (patch) | |
tree | d5be9207ce18b8ee179571d3db5d4ac480eaf404 /src/mongo/db/index/multikey_paths.h | |
parent | d32ecd37d47aba04636d8dda335ecbbad82307e5 (diff) | |
download | mongo-65222c4b5146cc6b8930e784149e5aade132a8fc.tar.gz |
SERVER-22726 Represent lack of path-level multikey info as empty vector.
Removes usages of boost::optional<MultikeyPaths>, where boost::none had
previously represented the lack of path-level multikey info.
Diffstat (limited to 'src/mongo/db/index/multikey_paths.h')
-rw-r--r-- | src/mongo/db/index/multikey_paths.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/index/multikey_paths.h b/src/mongo/db/index/multikey_paths.h index 7f0eb2e0b6a..794c9478093 100644 --- a/src/mongo/db/index/multikey_paths.h +++ b/src/mongo/db/index/multikey_paths.h @@ -34,12 +34,14 @@ namespace mongo { -// A vector with size equal to the number of elements in the index key pattern. Each element in -// the vector is an ordered set of positions (starting at 0) into the corresponding indexed -// field that represent what prefixes of the indexed field causes the index to be multikey. +// If non-empty, a vector with size equal to the number of elements in the index key pattern. Each +// element in the vector is an ordered set of positions (starting at 0) into the corresponding +// indexed field that represent what prefixes of the indexed field cause the index to be multikey. // // For example, with the index {'a.b': 1, 'a.c': 1} where the paths "a" and "a.b" cause the // index to be multikey, we'd have a std::vector<std::set<size_t>>{{0U, 1U}, {0U}}. +// +// 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>>; } // namespace mongo |