Commit 04d62a7
committed
Fix on-disk cache size calculation.
Since the initial release, recorded on-disk cache size was
decreased twice for purged content (once during cache purge
and once during subsequent cache update).
This resulted in recorded on-disk cache size being much
smaller than in reality, which could lead to on-disk cache
outgrowing defined "max_size" parameter.
Based on patch from Pyry Hakulinen.
Change-Id: I13d99311d01c63f14362d995ff8dc7654ea78e0d
Signed-off-by: Piotr Sikora <piotr.sikora@frickle.com>1 parent 4f6bfe5 commit 04d62a7
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
| 760 | + | |
760 | 761 | | |
761 | 762 | | |
| 763 | + | |
762 | 764 | | |
763 | 765 | | |
764 | 766 | | |
| |||
0 commit comments