summaryrefslogtreecommitdiff
path: root/src/mongo/db/session.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/session.h')
-rw-r--r--src/mongo/db/session.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/session.h b/src/mongo/db/session.h
index 01d94721537..df9bceeae2e 100644
--- a/src/mongo/db/session.h
+++ b/src/mongo/db/session.h
@@ -421,9 +421,10 @@ private:
// Checks if there is a conflicting operation on the current Session
void _checkValid(WithLock) const;
- // Checks that a new txnNumber is higher than the activeTxnNumber so
- // we don't start a txn that is too old.
- void _checkTxnValid(WithLock, TxnNumber txnNumber) const;
+ // Checks that a new txnNumber is higher than the activeTxnNumber so we don't start a
+ // transaction or retryable write that is older
+ // than the current one.
+ void _checkTxnValid(WithLock, TxnNumber txnNumber, boost::optional<bool> autocommit) const;
void _setActiveTxn(WithLock, TxnNumber txnNumber);