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

Method reset

pymongo/synchronous/client_session.py:462–468  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

460 self.conn_mgr = None
461
462 def reset(self) -> None:
463 self.unpin()
464 self.state = _TxnState.NONE
465 self.sharded = False
466 self.recovery_token = None
467 self.attempt = 0
468 self.has_completed_command = False
469
470 def __del__(self) -> None:
471 if self.conn_mgr:

Callers 2

__exit__Method · 0.45
start_transactionMethod · 0.45

Calls 1

unpinMethod · 0.95

Tested by

no test coverage detected