MCPcopy Create free account
hub / github.com/rthalley/dnspython / _commit_version_unlocked

Method _commit_version_unlocked

dns/versioned.py:251–259  ·  view source on GitHub ↗
(self, txn, version, origin)

Source from the content-addressed store, hash-verified

249 self._end_write_unlocked(txn)
250
251 def _commit_version_unlocked(self, txn, version, origin):
252 self._versions.append(version)
253 self._prune_versions_unlocked()
254 self.nodes = version.nodes
255 if self.origin is None:
256 self.origin = origin
257 # txn can be None in __init__ when we make the empty version.
258 if txn is not None:
259 self._end_write_unlocked(txn)
260
261 def _commit_version(self, txn, version, origin):
262 with self._version_lock:

Callers 2

__init__Method · 0.95
_commit_versionMethod · 0.95

Calls 2

_end_write_unlockedMethod · 0.95

Tested by

no test coverage detected