mirror of
https://github.com/restic/restic.git
synced 2026-02-03 04:20:45 -05:00
check: use AssociatedBlobSet
This commit is contained in:
parent
46ebee948f
commit
84dda4dc74
1 changed files with 3 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ type Checker struct {
|
|||
*repository.Checker
|
||||
blobRefs struct {
|
||||
sync.Mutex
|
||||
M restic.BlobSet
|
||||
M restic.AssociatedBlobSet
|
||||
}
|
||||
trackUnused bool
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ func New(repo checkerRepository, trackUnused bool) *Checker {
|
|||
trackUnused: trackUnused,
|
||||
}
|
||||
|
||||
c.blobRefs.M = restic.NewBlobSet()
|
||||
c.blobRefs.M = c.repo.NewAssociatedBlobSet()
|
||||
|
||||
return c
|
||||
}
|
||||
|
|
@ -245,7 +245,7 @@ func (c *Checker) UnusedBlobs(ctx context.Context) (blobs restic.BlobHandles, er
|
|||
c.blobRefs.Lock()
|
||||
defer c.blobRefs.Unlock()
|
||||
|
||||
debug.Log("checking %d blobs", len(c.blobRefs.M))
|
||||
debug.Log("checking %d blobs", c.blobRefs.M.Len())
|
||||
ctx, cancel := context.WithCancel(ctx)
|
||||
defer cancel()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue