MCPcopy
hub / github.com/mongodb/node-mongodb-native / incrementTransactionNumber

Method incrementTransactionNumber

src/sessions.ts:369–371  ·  view source on GitHub ↗

* Increment the transaction number on the internal ServerSession * * @privateRemarks * This helper increments a value stored on the client session that will be * added to the serverSession's txnNumber upon applying it to a command. * This is because the serverSession is lazily acquire

()

Source from the content-addressed store, hash-verified

367 * This is because the serverSession is lazily acquired after a connection is obtained
368 */
369 incrementTransactionNumber(): void {
370 this.txnNumberIncrement += 1;
371 }
372
373 /** @returns whether this session is currently in a transaction or not */
374 inTransaction(): boolean {

Callers 3

startTransactionMethod · 0.95
sessions.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected