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

Method _unpin

pymongo/synchronous/client_session.py:1073–1075  ·  view source on GitHub ↗

Unpin this session from any pinned Server.

(self)

Source from the content-addressed store, hash-verified

1071 self._transaction.pin(server, conn)
1072
1073 def _unpin(self) -> None:
1074 """Unpin this session from any pinned Server."""
1075 self._transaction.unpin()
1076
1077 def _txn_read_preference(self) -> Optional[_ServerMode]:
1078 """Return read preference of this transaction or None."""

Callers 5

_end_sessionMethod · 0.95
abort_transactionMethod · 0.95
_select_serverMethod · 0.45
handleMethod · 0.45
runMethod · 0.45

Calls 1

unpinMethod · 0.45

Tested by

no test coverage detected