From 66cd1cd240f078e2d5c9e32656b42dccf2d62935 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 5 Nov 2017 00:48:17 +0100 Subject: [PATCH] stats: do not count data volume twice when checkpointing, fixes #3224 --- src/borg/archive.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/borg/archive.py b/src/borg/archive.py index 519bac07ce..6700c2f017 100644 --- a/src/borg/archive.py +++ b/src/borg/archive.py @@ -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: