summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/recovery_unit.cpp
diff options
context:
space:
mode:
authorEvgeni Dobranov <evgeni.dobranov@mongodb.com>2019-09-09 21:25:21 +0000
committerevergreen <evergreen@mongodb.com>2019-09-09 21:25:21 +0000
commit857c21aec7011c9b8858bdd032e9c0c24970faef (patch)
tree728fe1f4967eace5b4c39d6e49e277f1a9c46e26 /src/mongo/db/storage/recovery_unit.cpp
parent35211e5167fb9a3de774dfcc866ef05d6dd4755f (diff)
downloadmongo-857c21aec7011c9b8858bdd032e9c0c24970faef.tar.gz
SERVER-41896 Take a unique_ptr as an argument to RecoveryUnit::registerChange()
Diffstat (limited to 'src/mongo/db/storage/recovery_unit.cpp')
-rw-r--r--src/mongo/db/storage/recovery_unit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/storage/recovery_unit.cpp b/src/mongo/db/storage/recovery_unit.cpp
index eb389eaf8b5..27f433d0c5f 100644
--- a/src/mongo/db/storage/recovery_unit.cpp
+++ b/src/mongo/db/storage/recovery_unit.cpp
@@ -35,9 +35,9 @@
#include "mongo/util/log.h"
namespace mongo {
-void RecoveryUnit::registerChange(Change* change) {
+void RecoveryUnit::registerChange(std::unique_ptr<Change> change) {
invariant(_inUnitOfWork(), toString(_getState()));
- _changes.push_back(std::unique_ptr<Change>{change});
+ _changes.push_back(std::move(change));
}
void RecoveryUnit::commitRegisteredChanges(boost::optional<Timestamp> commitTimestamp) {