diff options
author | Sean Tao <sean.tao@10gen.com> | 2018-08-09 13:35:50 -0400 |
---|---|---|
committer | Sean Tao <sean.tao@10gen.com> | 2018-08-10 10:36:37 -0400 |
commit | deba67957ddb1c3435fa4c8d36ea9fa3f59c9ad9 (patch) | |
tree | 58cd5bcd87bde74eb8f1f8e78749febdd829ab6f /src/mongo/db/storage/test_harness_helper.h | |
parent | 60a9c20ec95c4cceda9413e18334c55bb85fe66e (diff) | |
download | mongo-deba67957ddb1c3435fa4c8d36ea9fa3f59c9ad9.tar.gz |
SERVER-33366 OperationContext setRecoveryUnit() & releaseRecoveryUnit() should transfer using unique_ptr.
Diffstat (limited to 'src/mongo/db/storage/test_harness_helper.h')
-rw-r--r-- | src/mongo/db/storage/test_harness_helper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/test_harness_helper.h b/src/mongo/db/storage/test_harness_helper.h index e21947e917c..8513ee6c70b 100644 --- a/src/mongo/db/storage/test_harness_helper.h +++ b/src/mongo/db/storage/test_harness_helper.h @@ -59,7 +59,7 @@ public: virtual ServiceContext::UniqueOperationContext newOperationContext(Client* const client) { auto opCtx = client->makeOperationContext(); - opCtx->setRecoveryUnit(newRecoveryUnit().release(), + opCtx->setRecoveryUnit(newRecoveryUnit(), WriteUnitOfWork::RecoveryUnitState::kNotInUnitOfWork); return opCtx; } |