1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-23 16:26:29 +00:00

stats: do not count data volume twice when checkpointing, fixes #3224

This commit is contained in:
Thomas Waldmann 2017-11-05 00:48:17 +01:00
parent 9ebff91974
commit 66cd1cd240

View file

@ -1021,8 +1021,9 @@ def chunk_processor(data):
# if we created part files, we have referenced all chunks from the part files, # if we created part files, we have referenced all chunks from the part files,
# but we also will reference the same chunks also from the final, complete file: # but we also will reference the same chunks also from the final, complete file:
dummy_stats = Statistics() # do not count this data volume twice
for chunk in item.chunks: for chunk in item.chunks:
cache.chunk_incref(chunk.id, stats, size=chunk.size) cache.chunk_incref(chunk.id, dummy_stats, size=chunk.size)
class FilesystemObjectProcessors: class FilesystemObjectProcessors: