diff options
author | Anton Korshunov <anton.korshunov@mongodb.com> | 2019-12-10 13:11:40 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-12-10 13:11:40 +0000 |
commit | 75a2c8bb719a70743ab348ab2dd905476d253e51 (patch) | |
tree | 4c4069a911a228e657b9456566fae34171c84e7e /src/mongo/db/storage | |
parent | 1bbb3a2b7752ca1c6c254e78494b945597a4c72b (diff) | |
download | mongo-75a2c8bb719a70743ab348ab2dd905476d253e51.tar.gz |
SERVER-44334 Make ProjectionExecutor faster
Diffstat (limited to 'src/mongo/db/storage')
-rw-r--r-- | src/mongo/db/storage/snapshot.h | 1 |
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(); |