diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2018-11-12 14:04:22 -0500 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2018-11-12 15:21:22 -0500 |
commit | 04141490b2d5cc66be2457d3090292526dc37e4c (patch) | |
tree | 5df170aaafe2c05a5667d03dd4e6df6350afdeaf /src/mongo/db/repl/do_txn_test.cpp | |
parent | 774209d199f0ff08372bdbc93b68a0245c9e627c (diff) | |
download | mongo-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.cpp | 5 |
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); |