summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage
diff options
context:
space:
mode:
authorAnton Korshunov <anton.korshunov@mongodb.com>2019-12-10 13:11:40 +0000
committerevergreen <evergreen@mongodb.com>2019-12-10 13:11:40 +0000
commit75a2c8bb719a70743ab348ab2dd905476d253e51 (patch)
tree4c4069a911a228e657b9456566fae34171c84e7e /src/mongo/db/storage
parent1bbb3a2b7752ca1c6c254e78494b945597a4c72b (diff)
downloadmongo-75a2c8bb719a70743ab348ab2dd905476d253e51.tar.gz
SERVER-44334 Make ProjectionExecutor faster
Diffstat (limited to 'src/mongo/db/storage')
-rw-r--r--src/mongo/db/storage/snapshot.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/storage/snapshot.h b/src/mongo/db/storage/snapshot.h
index bbb9e4580cd..83180f47d60 100644
--- a/src/mongo/db/storage/snapshot.h
+++ b/src/mongo/db/storage/snapshot.h
@@ -82,6 +82,7 @@ public:
Snapshotted() : _id(), _value() {}
Snapshotted(SnapshotId id, const T& value) : _id(id), _value(value) {}
+ Snapshotted(SnapshotId id, T&& value) : _id(id), _value(std::forward<T>(value)) {}
void reset() {
*this = Snapshotted();