mirror of
https://github.com/restic/restic.git
synced 2026-11-08 16:13:38 +00:00
index: Limit index files to 3000 pack files
This commit is contained in:
1 parent
ca3c566a99
commit
f63c7048c7
3 files changed
+45
-77
No files matched your search
@@ -73,12 +73,12 @@ func rebuildIndex(ctx context.Context, repo restic.Repository, ignorePacks resti
|
||||
return err
|
||||
}
|
||||
|
||||
id, err := idx.Save(ctx, repo, supersedes)
|
||||
ids, err := idx.Save(ctx, repo, supersedes)
|
||||
if err != nil {
|
||||
return errors.Fatalf("unable to save index, last error was: %v", err)
|
||||
}
|
||||
|
||||
Verbosef("saved new index as %v\n", id.Str())
|
||||
Verbosef("saved new indexes as %v\n", ids)
|
||||
|
||||
Verbosef("remove %d old index files\n", len(supersedes))
|
||||
|
||||
|
||||
Reference in new issue
Block a user