1
0
mirror of https://github.com/restic/restic.git synced 2024-07-19 11:17:31 +02:00
restic/internal/index
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
..
index_parallel_test.go remove usages of repo.Backend() from tests 2024-05-18 21:42:51 +02:00
index_parallel.go index: misc cleanups 2024-05-24 21:33:17 +02:00
index_test.go index: remove supersedes field 2024-05-24 21:33:17 +02:00
index.go index: remove supersedes field 2024-05-24 21:33:17 +02:00
indexmap_test.go index: add basic hat test 2023-06-16 23:12:30 +02:00
indexmap.go replace "too small" with "too short" in error messages 2024-05-18 19:59:26 +02:00
master_index_test.go index: replace Save() method with Rewrite and SaveFallback 2024-05-24 21:33:17 +02:00
master_index.go index: replace Save() method with Rewrite and SaveFallback 2024-05-24 21:33:17 +02:00
testing.go repository: split index into a separate package 2022-10-08 21:15:34 +02:00