Browse Source

Merge pull request #8394 from ThomasWaldmann/list-refresh-lock-frequently

repository.list: refresh lock more frequently
TW 8 months ago
parent
commit
11b72efffe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/borg/repository.py

+ 1 - 1
src/borg/repository.py

@@ -336,11 +336,11 @@ class Repository:
         list <limit> infos starting from after id <marker>.
         each info is a tuple (id, storage_size).
         """
-        self._lock_refresh()
         collect = True if marker is None else False
         result = []
         infos = self.store.list("data")  # generator yielding ItemInfos
         while True:
+            self._lock_refresh()
             try:
                 info = next(infos)
             except StoreObjectNotFound: