Merge pull request #5249 from MichaelEischer/fix-repair-index

Prevent creation of oversized indexes and automatically rewrite them.
This commit is contained in:
Michael Eischer
2025-03-22 14:29:39 +01:00
committed by GitHub
9 changed files with 158 additions and 18 deletions

View File

@@ -0,0 +1,10 @@
Bugfix: Fix creation of oversized indexes by `repair index --read-all-packs`
Since restic 0.17.0, the new index created by `repair index --read-all-packs` was
written as a single large index. This significantly increases memory usage while
loading the index.
The index is now correctly split into multiple smaller indexes. `repair index` now
also automatically splits oversized indexes.
https://github.com/restic/restic/pull/5249