MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / reset

Method reset

pymongo/asynchronous/client_session.py:464–470  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 2

__aexit__Method · 0.45
start_transactionMethod · 0.45

Calls 1

unpinMethod · 0.95

Tested by

no test coverage detected