MCPcopy
hub / github.com/borgbackup/borg / break_lock

Method break_lock

src/borg/storelocking.py:230–236  ·  view source on GitHub ↗

Breaks all locks (not just ours).

(self)

Source from the content-addressed store, hash-verified

228 return len(locks) == 1
229
230 def break_lock(self):
231 """Breaks all locks (not just ours)."""
232 logger.debug("LOCK-BREAK: break_lock() was called - deleting ALL locks!")
233 locks = self._get_locks()
234 for key in locks:
235 self._delete_lock(key, ignore_not_found=True)
236 self.last_refresh_dt = None
237
238 def migrate_lock(self, old_id, new_id):
239 """Migrates the lock ownership from old_id to new_id."""

Callers

nothing calls this directly

Calls 3

_get_locksMethod · 0.95
_delete_lockMethod · 0.95
debugMethod · 0.80

Tested by

no test coverage detected