summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/index_entry.h
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2016-05-08 14:16:24 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2016-05-08 14:16:24 -0400
commit65222c4b5146cc6b8930e784149e5aade132a8fc (patch)
treed5be9207ce18b8ee179571d3db5d4ac480eaf404 /src/mongo/db/query/index_entry.h
parentd32ecd37d47aba04636d8dda335ecbbad82307e5 (diff)
downloadmongo-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/query/index_entry.h')
-rw-r--r--src/mongo/db/query/index_entry.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/query/index_entry.h b/src/mongo/db/query/index_entry.h
index 7b336515954..185b7ae6bed 100644
--- a/src/mongo/db/query/index_entry.h
+++ b/src/mongo/db/query/index_entry.h
@@ -28,7 +28,6 @@
#pragma once
-#include <boost/optional.hpp>
#include <string>
#include "mongo/db/index/multikey_paths.h"
@@ -106,7 +105,11 @@ struct IndexEntry {
bool multikey;
- boost::optional<MultikeyPaths> multikeyPaths;
+ // If non-empty, 'multikeyPaths' is 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.
+ MultikeyPaths multikeyPaths;
bool sparse;