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

Method unpin

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

Source from the content-addressed store, hash-verified

454 self.conn_mgr = _ConnectionManager(conn, False)
455
456 def unpin(self) -> None:
457 self.pinned_address = None
458 if self.conn_mgr:
459 self.conn_mgr.close()
460 self.conn_mgr = None
461
462 def reset(self) -> None:
463 self.unpin()

Callers 2

resetMethod · 0.95
_unpinMethod · 0.45

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected