summaryrefslogtreecommitdiff
path: root/src/mongo/db/index/btree_access_method.cpp
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2016-03-17 09:59:36 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2016-03-17 09:59:36 -0400
commit0654b0f626fd4a2f1f8842fa41a98704aada6e01 (patch)
tree45c52f128e43e93bc38c9112233a9187a2fe3ea2 /src/mongo/db/index/btree_access_method.cpp
parentee5fbdd8540d93d2e0d6fa19ba9a5595bb1829cb (diff)
downloadmongo-0654b0f626fd4a2f1f8842fa41a98704aada6e01.tar.gz
SERVER-22400 Compute multikey paths in BtreeKeyGeneratorV1::getKeys().
Propagates information about the prefixes of the indexed fields that cause the index to be multikey as a result of inserting the generated keys.
Diffstat (limited to 'src/mongo/db/index/btree_access_method.cpp')
-rw-r--r--src/mongo/db/index/btree_access_method.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/index/btree_access_method.cpp b/src/mongo/db/index/btree_access_method.cpp
index 6bc97956fe8..40c4bc77251 100644
--- a/src/mongo/db/index/btree_access_method.cpp
+++ b/src/mongo/db/index/btree_access_method.cpp
@@ -62,7 +62,11 @@ BtreeAccessMethod::BtreeAccessMethod(IndexCatalogEntry* btreeState, SortedDataIn
}
void BtreeAccessMethod::getKeys(const BSONObj& obj, BSONObjSet* keys) const {
- _keyGenerator->getKeys(obj, keys);
+ // SERVER-22726 represents the work to gather and persist the path-level multikey information.
+ // Until that's done, we may as well avoid computing the prefixes of the indexed fields that
+ // cause the index to be multikey.
+ MultikeyPaths* multikeyPaths = nullptr;
+ _keyGenerator->getKeys(obj, keys, multikeyPaths);
}
} // namespace mongo