summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/do_txn_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/do_txn_test.cpp')
-rw-r--r--src/mongo/db/repl/do_txn_test.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/db/repl/do_txn_test.cpp b/src/mongo/db/repl/do_txn_test.cpp
index a60656f2355..1820b17e78d 100644
--- a/src/mongo/db/repl/do_txn_test.cpp
+++ b/src/mongo/db/repl/do_txn_test.cpp
@@ -156,10 +156,7 @@ void DoTxnTest::setUp() {
// Set up the transaction and session.
_opCtx->setLogicalSessionId(makeLogicalSessionIdForTest());
_opCtx->setTxnNumber(0); // TxnNumber can always be 0 because we have a new session.
- OperationSessionInfoFromClient sessionInfo;
- sessionInfo.setAutocommit(false);
- sessionInfo.setStartTransaction(true);
- _ocs.emplace(_opCtx.get(), true /* checkOutSession */, sessionInfo);
+ _ocs.emplace(_opCtx.get(), true /* checkOutSession */);
auto txnParticipant = TransactionParticipant::get(opCtx());
txnParticipant->beginOrContinue(*opCtx()->getTxnNumber(), false, true);