mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-01 12:45:34 +00:00
verify_data: do a linear scan in disk-order
This commit is contained in:
parent
90111363ba
commit
6624ca9cdb
1 changed files with 6 additions and 2 deletions
|
@ -1045,8 +1045,12 @@ def verify_data(self):
|
|||
errors = 0
|
||||
defect_chunks = []
|
||||
pi = ProgressIndicatorPercent(total=count, msg="Verifying data %6.2f%%", step=0.01)
|
||||
for chunk_infos in chunkit(self.chunks.iteritems(), 100):
|
||||
chunk_ids = [chunk_id for chunk_id, _ in chunk_infos]
|
||||
marker = None
|
||||
while True:
|
||||
chunk_ids = self.repository.scan(limit=100, marker=marker)
|
||||
if not chunk_ids:
|
||||
break
|
||||
marker = chunk_ids[-1]
|
||||
chunk_data_iter = self.repository.get_many(chunk_ids)
|
||||
chunk_ids_revd = list(reversed(chunk_ids))
|
||||
while chunk_ids_revd:
|
||||
|
|
Loading…
Reference in a new issue