mirror of
https://github.com/restic/restic.git
synced 2026-11-10 16:53:09 +00:00
Use in-memory index to rebuild index in prune
This commit is contained in:
1 parent
38cc4393f6
commit
fd33030556
4 files changed
+38
-14
No files matched your search
@@ -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