Merge pull request #3980 from MichaelEischer/prune-compression-stats

prune: Correctly count used/duplicate blobs for partially compressed repos
This commit is contained in:
Michael Eischer
2022-11-12 20:06:56 +01:00
committed by GitHub
2 changed files with 28 additions and 13 deletions

View File

@@ -0,0 +1,12 @@
Bugfix: Correct prune statistics for partially compressed repositories
In a partially compressed repository, one data blob can exist both in an
uncompressed and a compressed version. This caused the prune statistics to
become inaccurate and for example report a too high value for the unused size:
> unused size after prune: 16777215.991 TiB
This has been fixed.
https://github.com/restic/restic/issues/3918
https://github.com/restic/restic/pull/3980