diff options
author | Evgeni Dobranov <evgeni.dobranov@mongodb.com> | 2019-09-09 21:25:21 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-09 21:25:21 +0000 |
commit | 857c21aec7011c9b8858bdd032e9c0c24970faef (patch) | |
tree | 728fe1f4967eace5b4c39d6e49e277f1a9c46e26 /src/mongo/db/storage/recovery_unit.cpp | |
parent | 35211e5167fb9a3de774dfcc866ef05d6dd4755f (diff) | |
download | mongo-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.cpp | 4 |
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) { |