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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/session.h b/src/mongo/db/session.h
index bfa7487d33f..5ca119f1094 100644
--- a/src/mongo/db/session.h
+++ b/src/mongo/db/session.h
@@ -72,8 +72,10 @@ public:
/**
* Stashes transaction state from 'opCtx' in the newly constructed TxnResources.
* This ephemerally takes the Client lock associated with the opCtx.
+ * keepTicket: If true, do not release locker's throttling ticket.
+ * Use only for short-term stashing.
*/
- TxnResources(OperationContext* opCtx);
+ TxnResources(OperationContext* opCtx, bool keepTicket = false);
~TxnResources();