diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-04-06 16:05:10 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-10 15:02:47 +0000 |
commit | da923cf72003a34a45ce7775dd66ccd944da7d11 (patch) | |
tree | 64278565411e93bdb0835e67e41f35a8997ab316 /src/mongo/db/index/s2_access_method.h | |
parent | 3d929ed533a72446353b18b5d60770aed33b58f1 (diff) | |
download | mongo-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.h | 3 |
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, |