summaryrefslogtreecommitdiff
path: root/src/mongo/db/transaction_participant.cpp
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2020-06-09 15:45:47 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-09 18:37:47 +0000
commit63572d7f6f3b84c7d65f3bd3fe62c7ccbcc42db0 (patch)
treeabf1900a13fb0dd282bf0ab745d01b2a784c6eff /src/mongo/db/transaction_participant.cpp
parent80884df534d2fb033c6ec60d0672f5c45395ec28 (diff)
downloadmongo-63572d7f6f3b84c7d65f3bd3fe62c7ccbcc42db0.tar.gz
Revert "SERVER-47645 Must invalidate all sessions on stepdown"
This reverts commit 5f1a69aaf69bc12124f68e7b489a1437f9cdd575.
Diffstat (limited to 'src/mongo/db/transaction_participant.cpp')
-rw-r--r--src/mongo/db/transaction_participant.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mongo/db/transaction_participant.cpp b/src/mongo/db/transaction_participant.cpp
index 9b7d6ae21d3..2c32352c856 100644
--- a/src/mongo/db/transaction_participant.cpp
+++ b/src/mongo/db/transaction_participant.cpp
@@ -590,9 +590,6 @@ void TransactionParticipant::Participant::beginOrContinueTransactionUnconditiona
if (o().activeTxnNumber != txnNumber) {
_beginMultiDocumentTransaction(opCtx, txnNumber);
- } else {
- invariant(o().txnState.isInSet(TransactionState::kInProgress | TransactionState::kPrepared),
- str::stream() << "Current state: " << o().txnState);
}
// Assume we need to write an abort if we abort this transaction. This method is called only