Skip to content

Commit

Permalink
repository3: add migrate_lock method
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWaldmann committed Aug 14, 2024
1 parent 3fb7115 commit 91b7337
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/borg/repository3.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ def preload(self, ids):
def break_lock(self):
Lock(self.store).break_lock()

def migrate_lock(self, old_id, new_id):
# note: only needed for local repos
if self.lock is not None:
self.lock.migrate_lock(old_id, new_id)

def get_manifest(self):
try:
return self.store.load("config/manifest")
Expand Down

0 comments on commit 91b7337

Please sign in to comment.