mirror of
https://github.com/restic/restic.git
synced 2025-08-23 16:17:53 +00:00
Use in-memory index to rebuild index in prune
This commit is contained in:

committed by
Alexander Neumann

parent
38cc4393f6
commit
fd33030556
@@ -322,7 +322,10 @@ func (r *Repository) Flush(ctx context.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Save index after flushing
|
||||
// Save index after flushing only if noAutoIndexUpdate is not set
|
||||
if r.noAutoIndexUpdate {
|
||||
return nil
|
||||
}
|
||||
return r.SaveIndex(ctx)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user