Skip to content

Commit

Permalink
Add comment that keepBlobs is modified
Browse files Browse the repository at this point in the history
  • Loading branch information
fd0 authored and mfrischknecht committed Jun 14, 2022
1 parent f1c5eee commit 09cda6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/repository/repack.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const numRepackWorkers = 8
// these packs. Each pack is loaded and the blobs listed in keepBlobs is saved
// into a new pack. Returned is the list of obsolete packs which can then
// be removed.
//
// The map keepBlobs is modified by Repack, it is used to keep track of which
// blobs have been processed.
func Repack(ctx context.Context, repo restic.Repository, packs restic.IDSet, keepBlobs restic.BlobSet, p *restic.Progress) (obsoletePacks restic.IDSet, err error) {
if p != nil {
p.Start()
Expand Down

0 comments on commit 09cda6f

Please sign in to comment.