mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-03 21:56:44 +00:00
stats: do not count data volume twice when checkpointing, fixes #3224
(cherry picked from commit 66cd1cd240
)
This commit is contained in:
parent
9e6b04db60
commit
49c4cbb93c
1 changed files with 2 additions and 1 deletions
|
@ -942,8 +942,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)
|
||||||
|
|
||||||
def process_stdin(self, path, cache):
|
def process_stdin(self, path, cache):
|
||||||
uid, gid = 0, 0
|
uid, gid = 0, 0
|
||||||
|
|
Loading…
Reference in a new issue