MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / clear

Method clear

test/test_connection_monitoring.py:146–151  ·  view source on GitHub ↗

Run the 'clear' operation.

(self, op)

Source from the content-addressed store, hash-verified

144 self.pool.ready()
145
146 def clear(self, op):
147 """Run the 'clear' operation."""
148 if "interruptInUseConnections" in op:
149 self.pool.reset(interrupt_connections=op["interruptInUseConnections"])
150 else:
151 self.pool.reset()
152
153 def close(self, op):
154 """Run the 'close' operation."""

Callers 7

setUpMethod · 0.45
resetMethod · 0.45
resetMethod · 0.45
test_zero_latencyMethod · 0.45

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected