diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2016-03-17 09:59:36 -0400 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2016-03-17 09:59:36 -0400 |
commit | 0654b0f626fd4a2f1f8842fa41a98704aada6e01 (patch) | |
tree | 45c52f128e43e93bc38c9112233a9187a2fe3ea2 /src/mongo/db/index/btree_access_method.cpp | |
parent | ee5fbdd8540d93d2e0d6fa19ba9a5595bb1829cb (diff) | |
download | mongo-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.cpp | 6 |
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 |