Skip to content

Commit ca48b61

Browse files
committed
add doc comment
1 parent 2411c43 commit ca48b61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sessions.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ export class ClientSession
124124
owner?: symbol | AbstractCursor;
125125
defaultTransactionOptions: TransactionOptions;
126126
transaction: Transaction;
127+
/** @internal
128+
* Keeps track of whether or not the current transaction has attempted to be committed. Is
129+
* initially undefined. Gets set to false when startTransaction is called. When commitTransaction is sent to server, if the commitTransaction succeeds, it is then set to undefined, otherwise, set to true */
127130
commitAttempted?: boolean;
128131
/** @internal */
129132
[kServerSession]: ServerSession | null;

0 commit comments

Comments
 (0)