mirror of
https://github.com/restic/restic.git
synced 2026-06-24 01:24:19 +00:00
index: reduce size of compressed indexes
use the same index size for compressed and uncompressed indexes. Otherwise, decoding the index of a compressed repository requires significantly more memory.
This commit is contained in:
@@ -68,7 +68,7 @@ func TestRebuildIndexAlwaysFull(t *testing.T) {
|
||||
defer func() {
|
||||
index.IndexFull = indexFull
|
||||
}()
|
||||
index.IndexFull = func(*index.Index, bool) bool { return true }
|
||||
index.IndexFull = func(*index.Index) bool { return true }
|
||||
testRebuildIndex(t, nil)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user