1
0
mirror of https://github.com/restic/restic.git synced 2024-07-19 11:17:31 +02:00
restic/internal
Michael Eischer 5f7b48e65f index: replace Save() method with Rewrite and SaveFallback
Rewrite implements a streaming rewrite of the index that excludes the
given packs. For this it loads all index files from the repository and
only modifies those that require changes. This will reduce the index
churn when running prune. Rewrite does not require the in-memory index
and thus can drop it to significantly reduce the memory usage.

However, `prune --unsafe-recovery` cannot use this strategy and requires
a separate method to save the whole in-memory index. This is now handled
using SaveFallback.
2024-05-24 21:33:17 +02:00
..
archiver archiver: replace most uses of restic.Repository 2024-05-24 21:33:17 +02:00
backend backend/retry: feature flag new retry behavior 2024-05-24 20:24:02 +02:00
bloblru bloblru: add test for GetOrCompute 2024-05-05 12:00:25 +02:00
cache cache: cleanup debug logs 2024-05-18 21:28:54 +02:00
checker index: deduplicate index loading of check and repository 2024-05-24 21:33:17 +02:00
crypto replace "too small" with "too short" in error messages 2024-05-18 19:59:26 +02:00
debug Fix review comments 2024-04-29 16:21:38 -06:00
dump dump: add GetOrCompute to bloblru cache 2024-05-05 11:38:42 +02:00
errors Add changelog and fix lint error 2024-02-24 13:47:49 -07:00
feature forget: add feature flag for safe --keep-tags behavior 2024-05-24 20:45:33 +02:00
filter
fs Fix review comments 2024-05-06 16:54:08 -06:00
fuse repository: fix parameter order of LookupBlobSize 2024-05-24 21:33:17 +02:00
hashing
index index: replace Save() method with Rewrite and SaveFallback 2024-05-24 21:33:17 +02:00
migrations remove usages of repo.Backend() from tests 2024-05-18 21:42:51 +02:00
options
pack repository: inline MasterIndex interface into Repository interface 2024-05-24 21:33:17 +02:00
repository index: replace Save() method with Rewrite and SaveFallback 2024-05-24 21:33:17 +02:00
restic restic: add IDSet.Clone() method 2024-05-24 21:33:17 +02:00
restorer repository: unwrap BlobHandle parameters of LookupBlob 2024-05-24 21:33:17 +02:00
selfupdate
test use consistent alias for interal/test package 2024-03-29 00:24:03 +01:00
textfile
ui ui/progress: add helper to print messages during tests 2024-04-14 13:45:08 +02:00
walker Fix struct names 2024-04-18 10:02:09 +08:00