mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-10 06:03:38 +00:00
cache sync: check archive TAM
This commit is contained in:
parent
7da8738513
commit
155d8ee23b
1 changed files with 2 additions and 1 deletions
|
@ -755,7 +755,8 @@ class LocalCache(CacheStatsMixin):
|
|||
nonlocal processed_item_metadata_chunks
|
||||
csize, data = decrypted_repository.get(archive_id)
|
||||
chunk_idx.add(archive_id, 1, len(data), csize)
|
||||
archive = ArchiveItem(internal_dict=msgpack.unpackb(data))
|
||||
archive, verified = self.key.unpack_and_verify_archive(data, force_tam_not_required=True)
|
||||
archive = ArchiveItem(internal_dict=archive)
|
||||
if archive.version != 1:
|
||||
raise Exception('Unknown archive metadata version')
|
||||
sync = CacheSynchronizer(chunk_idx)
|
||||
|
|
Loading…
Add table
Reference in a new issue