summaryrefslogtreecommitdiff
path: root/src/mongo/db/index/btree_access_method.h
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2020-04-06 16:05:10 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-10 15:02:47 +0000
commitda923cf72003a34a45ce7775dd66ccd944da7d11 (patch)
tree64278565411e93bdb0835e67e41f35a8997ab316 /src/mongo/db/index/btree_access_method.h
parent3d929ed533a72446353b18b5d60770aed33b58f1 (diff)
downloadmongo-da923cf72003a34a45ce7775dd66ccd944da7d11.tar.gz
SERVER-47001 Added a pooled KeyString builder.
It uses a memory pool in the execution context to be able to share a larger memory buffer for multiple KeyStrings. Added SharedBufferFragment and SharedBufferFragmentBuilder to achieve this.
Diffstat (limited to 'src/mongo/db/index/btree_access_method.h')
-rw-r--r--src/mongo/db/index/btree_access_method.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/index/btree_access_method.h b/src/mongo/db/index/btree_access_method.h
index 492cb791241..b6e64b10a94 100644
--- a/src/mongo/db/index/btree_access_method.h
+++ b/src/mongo/db/index/btree_access_method.h
@@ -48,7 +48,8 @@ public:
BtreeAccessMethod(IndexCatalogEntry* btreeState, std::unique_ptr<SortedDataInterface> btree);
private:
- void doGetKeys(const BSONObj& obj,
+ void doGetKeys(SharedBufferFragmentBuilder& pooledBufferBuilder,
+ const BSONObj& obj,
GetKeysContext context,
KeyStringSet* keys,
KeyStringSet* multikeyMetadataKeys,