repository: index saving belongs into the MasterIndex

This commit is contained in:
Michael Eischer 2022-05-26 12:38:18 +02:00
parent 0c0e7b6957
commit a77d5c4d11
7 changed files with 54 additions and 54 deletions

View file

@ -154,7 +154,7 @@ func (r *Repository) savePacker(ctx context.Context, t restic.BlobType, p *Packe
if r.noAutoIndexUpdate {
return nil
}
return r.SaveFullIndex(ctx)
return r.idx.SaveFullIndex(ctx, r)
}
// countPacker returns the number of open (unfinished) packers.