mirror of
https://github.com/restic/restic.git
synced 2026-11-05 06:49:21 +00:00
Allow saving duplicate blobs in the repacker
This adds code to the master index to allow saving duplicate blobs within the repacker. In this mode, only the list of currently in flight blobs is consulted, and not the index. This correct because while repacking, a unique list of blobs is saved again to the index.
This commit is contained in:
1 parent
34c1056efc
commit
f53008d916
4 files changed
+47
-40
No files matched your search
+1
-1
@@ -136,7 +136,7 @@ func repackBlob(src, dst *repository.Repository, id backend.ID) error {
|
||||
return errors.New("LoadBlob returned wrong data, len() doesn't match")
|
||||
}
|
||||
|
||||
_, err = dst.SaveAndEncrypt(blob.Type, buf, &id)
|
||||
_, err = dst.SaveAndEncrypt(blob.Type, buf, &id, true)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user