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

Function isRetryableWritesEnabled

src/sdam/server.ts:581–583  ·  view source on GitHub ↗

this checks the retryWrites option passed down from the client options, it * does not check if the server supports retryable writes

(topology: Topology)

Source from the content-addressed store, hash-verified

579/** this checks the retryWrites option passed down from the client options, it
580 * does not check if the server supports retryable writes */
581function isRetryableWritesEnabled(topology: Topology) {
582 return topology.s.options.retryWrites !== false;
583}
584
585function isStaleError(server: Server, error: MongoError): boolean {
586 const currentGeneration = server.pool.generation;

Callers 1

decorateCommandErrorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected