summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/do_txn_test.cpp
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2018-11-12 14:04:22 -0500
committerEsha Maharishi <esha.maharishi@mongodb.com>2018-11-12 15:21:22 -0500
commit04141490b2d5cc66be2457d3090292526dc37e4c (patch)
tree5df170aaafe2c05a5667d03dd4e6df6350afdeaf /src/mongo/db/repl/do_txn_test.cpp
parent774209d199f0ff08372bdbc93b68a0245c9e627c (diff)
downloadmongo-04141490b2d5cc66be2457d3090292526dc37e4c.tar.gz
SERVER-38095 Remove unused OperationSessionInfoFromClient argument to OperationContextSessionMongod constructor
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);