mirror of
https://github.com/octoleo/restic.git
synced 2024-11-29 16:23:59 +00:00
checker: Remove dead index map
This commit is contained in:
parent
c66a0e408c
commit
35d8413639
@ -27,7 +27,6 @@ type Checker struct {
|
|||||||
sync.Mutex
|
sync.Mutex
|
||||||
M map[restic.ID]bool
|
M map[restic.ID]bool
|
||||||
}
|
}
|
||||||
indexes map[restic.ID]*repository.Index
|
|
||||||
|
|
||||||
masterIndex *repository.MasterIndex
|
masterIndex *repository.MasterIndex
|
||||||
|
|
||||||
@ -40,7 +39,6 @@ func New(repo restic.Repository) *Checker {
|
|||||||
packs: restic.NewIDSet(),
|
packs: restic.NewIDSet(),
|
||||||
blobs: restic.NewIDSet(),
|
blobs: restic.NewIDSet(),
|
||||||
masterIndex: repository.NewMasterIndex(),
|
masterIndex: repository.NewMasterIndex(),
|
||||||
indexes: make(map[restic.ID]*repository.Index),
|
|
||||||
repo: repo,
|
repo: repo,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -152,7 +150,6 @@ func (c *Checker) LoadIndex(ctx context.Context) (hints []error, errs []error) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
c.indexes[res.ID] = res.Index
|
|
||||||
c.masterIndex.Insert(res.Index)
|
c.masterIndex.Insert(res.Index)
|
||||||
|
|
||||||
debug.Log("process blobs")
|
debug.Log("process blobs")
|
||||||
|
Loading…
Reference in New Issue
Block a user