Skip to content

Commit

Permalink
stats: do not count data volume twice when checkpointing, fixes borgb…
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWaldmann committed Nov 4, 2017
1 parent 9ebff91 commit 66cd1cd
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 66cd1cd

Please sign in to comment.