mirror of
https://github.com/octoleo/restic.git
synced 2024-11-30 00:33:57 +00:00
Add comment that keepBlobs is modified
This commit is contained in:
parent
866a52ad4e
commit
ae5302c7a8
@ -19,6 +19,9 @@ const numRepackWorkers = 8
|
|||||||
// these packs. Each pack is loaded and the blobs listed in keepBlobs is saved
|
// 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
|
// into a new pack. Returned is the list of obsolete packs which can then
|
||||||
// be removed.
|
// 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) {
|
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 {
|
if p != nil {
|
||||||
p.Start()
|
p.Start()
|
||||||
|
Loading…
Reference in New Issue
Block a user