1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-23 14:41:43 +00:00

recreate: fix crash on checkpoint

This commit is contained in:
Marian Beermann 2016-12-02 11:39:10 +01:00
parent eb940e6779
commit eade10a0a8

View file

@ -1517,9 +1517,9 @@ def chunk_processor(self, target, compress, data):
if Compressor.detect(old_chunk.data).name == compression_spec['name']:
# Stored chunk has the same compression we wanted
overwrite = False
chunk_id, size, csize = self.cache.add_chunk(chunk_id, chunk, target.stats, overwrite=overwrite)
self.seen_chunks.add(chunk_id)
return chunk_id, size, csize
chunk_entry = self.cache.add_chunk(chunk_id, chunk, target.stats, overwrite=overwrite)
self.seen_chunks.add(chunk_entry.id)
return chunk_entry
def create_chunk_iterator(self, archive, target, chunks):
"""Return iterator of chunks to store for 'item' from 'archive' in 'target'."""