Răsfoiți Sursa

Merge pull request #3282 from ThomasWaldmann/fix-checkpoint-stats

stats: do not count data volume twice when checkpointing, fixes #3224
TW 7 ani în urmă
părinte
comite
410770dfe7
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      src/borg/archive.py

+ 2 - 1
src/borg/archive.py

@@ -1021,8 +1021,9 @@ class ChunksProcessor:
 
                 # 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: