summaryrefslogtreecommitdiff
path: root/src/mongo/db/index/s2_access_method.cpp
diff options
context:
space:
mode:
authorJordi Olivares Provencio <jordi.olivares-provencio@mongodb.com>2022-07-15 14:46:25 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-15 16:26:15 +0000
commitd8616301f12951868e52e19cd696cff620caa28e (patch)
tree8e3ddeddae9ba83be8899c93cbfa465fda7e20a9 /src/mongo/db/index/s2_access_method.cpp
parent6af105aa73b7e3ed88186a14a5e832434af65863 (diff)
downloadmongo-d8616301f12951868e52e19cd696cff620caa28e.tar.gz
SERVER-67471 Improve RecordId usage performance
Diffstat (limited to 'src/mongo/db/index/s2_access_method.cpp')
-rw-r--r--src/mongo/db/index/s2_access_method.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/index/s2_access_method.cpp b/src/mongo/db/index/s2_access_method.cpp
index a2ea40dd9b1..eaba79ce7eb 100644
--- a/src/mongo/db/index/s2_access_method.cpp
+++ b/src/mongo/db/index/s2_access_method.cpp
@@ -143,7 +143,7 @@ void S2AccessMethod::doGetKeys(OperationContext* opCtx,
KeyStringSet* keys,
KeyStringSet* multikeyMetadataKeys,
MultikeyPaths* multikeyPaths,
- boost::optional<RecordId> id) const {
+ const boost::optional<RecordId>& id) const {
ExpressionKeysPrivate::getS2Keys(pooledBufferBuilder,
obj,
_descriptor->keyPattern(),