summaryrefslogtreecommitdiff
path: root/src/mongo/db/index/s2_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/s2_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/s2_access_method.h')
-rw-r--r--src/mongo/db/index/s2_access_method.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/index/s2_access_method.h b/src/mongo/db/index/s2_access_method.h
index d3ed49d918e..9f21e9b9cf7 100644
--- a/src/mongo/db/index/s2_access_method.h
+++ b/src/mongo/db/index/s2_access_method.h
@@ -64,7 +64,8 @@ private:
* and fills each element with the prefixes of the indexed field that would cause this index to
* be multikey as a result of inserting 'keys'.
*/
- void doGetKeys(const BSONObj& obj,
+ void doGetKeys(SharedBufferFragmentBuilder& pooledBufferBuilder,
+ const BSONObj& obj,
GetKeysContext context,
KeyStringSet* keys,
KeyStringSet* multikeyMetadataKeys,