summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/test_harness_helper.h
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2018-04-11 12:05:03 -0400
committerTess Avitabile <tess.avitabile@mongodb.com>2018-04-13 10:11:59 -0400
commit77abd6ad01e6ecf616f53ce6dafdb428d4806866 (patch)
treef8073728d1f8a62bb5400079705ec99ae646a061 /src/mongo/db/storage/test_harness_helper.h
parent404d3fc4c5d1183e5a29433ea7fe52ef88546710 (diff)
downloadmongo-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.h3
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;
}