mirror of
https://github.com/restic/restic.git
synced 2025-08-12 11:57:56 +00:00
Merge final indexes together for faster index access
This commit is contained in:

committed by
Michael Eischer

parent
3b7a3711e6
commit
e388d962a5
@@ -190,6 +190,8 @@ func (c *Checker) LoadIndex(ctx context.Context) (hints []error, errs []error) {
|
||||
}
|
||||
}
|
||||
|
||||
c.masterIndex.MergeFinalIndexes()
|
||||
|
||||
err = c.repo.SetIndex(c.masterIndex)
|
||||
if err != nil {
|
||||
debug.Log("SetIndex returned error: %v", err)
|
||||
|
Reference in New Issue
Block a user