From 09cda6f7a2cfb45e00b2e6b57ab33bbfe1425c4c Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Thu, 5 Nov 2020 10:33:38 +0100 Subject: [PATCH] Add comment that keepBlobs is modified --- internal/repository/repack.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/repository/repack.go b/internal/repository/repack.go index f1f091222183..7b7ba8141888 100644 --- a/internal/repository/repack.go +++ b/internal/repository/repack.go @@ -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()