mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-13 19:00:44 -04:00
Merge pull request #8394 from ThomasWaldmann/list-refresh-lock-frequently
repository.list: refresh lock more frequently
This commit is contained in:
commit
11b72efffe
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue