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

Method upgrade

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

Source from the content-addressed store, hash-verified

458 self._roster.remove()
459
460 def upgrade(self):
461 # WARNING: if multiple read-lockers want to upgrade, it will deadlock because they
462 # all will wait until the other read locks go away - and that won't happen.
463 if not self.is_exclusive:
464 self.acquire(exclusive=True, remove=SHARED)
465
466 def downgrade(self):
467 if self.is_exclusive:

Callers 2

prepare_txnMethod · 0.80
test_upgradeMethod · 0.80

Calls 1

acquireMethod · 0.95

Tested by 1

test_upgradeMethod · 0.64