mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-23 14:41:43 +00:00
cache: explain fetch_missing_csize cost
This commit is contained in:
parent
0462a561c1
commit
4689fd0c22
1 changed files with 2 additions and 0 deletions
|
@ -656,6 +656,8 @@ def fetch_missing_csize(chunk_idx):
|
|||
else:
|
||||
fetch_ids = all_missing_ids
|
||||
|
||||
# This is potentially a rather expensive operation, but it's hard to tell at this point
|
||||
# if it's a problem in practice (hence the experimental status of --no-cache-sync).
|
||||
for id_, data in zip(fetch_ids, decrypted_repository.repository.get_many(fetch_ids)):
|
||||
entry = chunk_idx[id_]._replace(csize=len(data))
|
||||
chunk_idx[id_] = entry
|
||||
|
|
Loading…
Reference in a new issue