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

Method equals

src/sessions.ts:349–359  ·  view source on GitHub ↗

* Used to determine if this session equals another * * @param session - The session to compare to

(session: ClientSession)

Source from the content-addressed store, hash-verified

347 * @param session - The session to compare to
348 */
349 equals(session: ClientSession): boolean {
350 if (!(session instanceof ClientSession)) {
351 return false;
352 }
353
354 if (this.id == null || session.id == null) {
355 return false;
356 }
357
358 return ByteUtils.equals(this.id.id.buffer, session.id.id.buffer);
359 }
360
361 /**
362 * Increment the transaction number on the internal ServerSession

Callers 15

serverDescriptionDiffFunction · 0.45
checkForNewPrimaryFunction · 0.45
resultCheckFunction · 0.45
specialCheckFunction · 0.45
collection.test.tsFile · 0.45
testFunction · 0.45
insert.test.tsFile · 0.45
driver.test.tsFile · 0.45

Calls

no outgoing calls

Tested by 1

testFunction · 0.36