mirror of https://github.com/borgbackup/borg.git
cache: don't create Item in fetch_and_build_idx
This commit is contained in:
parent
7e5ed40e2f
commit
e169510116
|
@ -435,9 +435,7 @@ Chunk index: {0.total_unique_chunks:20d} {0.total_chunks:20d}"""
|
|||
if not isinstance(item, dict):
|
||||
logger.error('Error: Did not get expected metadata dict - archive corrupted!')
|
||||
continue
|
||||
item = Item(internal_dict=item)
|
||||
if 'chunks' in item:
|
||||
for chunk_id, size, csize in item.chunks:
|
||||
for chunk_id, size, csize in item.get(b'chunks', []):
|
||||
chunk_idx.add(chunk_id, 1, size, csize)
|
||||
if self.do_cache:
|
||||
fn = mkpath(archive_id)
|
||||
|
|
Loading…
Reference in New Issue