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