Skip to content

Commit

Permalink
Merge pull request borgbackup#3282 from ThomasWaldmann/fix-checkpoint…
Browse files Browse the repository at this point in the history
…-stats

stats: do not count data volume twice when checkpointing, fixes borgbackup#3224
  • Loading branch information
ThomasWaldmann authored Nov 5, 2017
2 parents c90a39e + 66cd1cd commit 410770d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/borg/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,8 +1021,9 @@ def chunk_processor(data):

# 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:
dummy_stats = Statistics() # do not count this data volume twice
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:
Expand Down

0 comments on commit 410770d

Please sign in to comment.