mirror of
https://github.com/restic/restic.git
synced 2025-10-10 09:24:35 +00:00
check: Only track data blobs when unused blobs should be reported
This improves the memory usage of check a lot as it now only has to track tree blobs when run using the default parameters.
This commit is contained in:
@@ -360,7 +360,7 @@ func TestIndexSave(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
checker := checker.New(repo)
|
||||
checker := checker.New(repo, false)
|
||||
hints, errs := checker.LoadIndex(context.TODO())
|
||||
for _, h := range hints {
|
||||
t.Logf("hint: %v\n", h)
|
||||
|
Reference in New Issue
Block a user