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

Method downgrade

src/borg/fslocking.py:466–468  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

464 self.acquire(exclusive=True, remove=SHARED)
465
466 def downgrade(self):
467 if self.is_exclusive:
468 self.acquire(exclusive=False, remove=EXCLUSIVE)
469
470 def got_exclusive_lock(self):
471 return self.is_exclusive and self._lock.is_locked() and self._lock.by_me()

Callers 1

test_downgradeMethod · 0.80

Calls 1

acquireMethod · 0.95

Tested by 1

test_downgradeMethod · 0.64