diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-04-11 12:05:03 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-04-13 10:11:59 -0400 |
commit | 77abd6ad01e6ecf616f53ce6dafdb428d4806866 (patch) | |
tree | f8073728d1f8a62bb5400079705ec99ae646a061 /src/mongo/db/storage/test_harness_helper.h | |
parent | 404d3fc4c5d1183e5a29433ea7fe52ef88546710 (diff) | |
download | mongo-77abd6ad01e6ecf616f53ce6dafdb428d4806866.tar.gz |
SERVER-33548 Enable profiling for batch writes within transactions
Diffstat (limited to 'src/mongo/db/storage/test_harness_helper.h')
-rw-r--r-- | src/mongo/db/storage/test_harness_helper.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/storage/test_harness_helper.h b/src/mongo/db/storage/test_harness_helper.h index 935d54cbb86..8ce241bcb3e 100644 --- a/src/mongo/db/storage/test_harness_helper.h +++ b/src/mongo/db/storage/test_harness_helper.h @@ -51,7 +51,8 @@ public: virtual ServiceContext::UniqueOperationContext newOperationContext(Client* const client) { auto opCtx = client->makeOperationContext(); - opCtx->setRecoveryUnit(newRecoveryUnit().release(), OperationContext::kNotInUnitOfWork); + opCtx->setRecoveryUnit(newRecoveryUnit().release(), + WriteUnitOfWork::RecoveryUnitState::kNotInUnitOfWork); return opCtx; } |