mirror of
https://github.com/restic/restic.git
synced 2026-10-11 12:37:13 +00:00
Return the original backend ID on duplicate entries
This commit is contained in:
1 parent
f188cf81dc
commit
cc7acba02b
1 file changed
+1
-1
@@ -315,7 +315,7 @@ func (r *Repository) SaveAndEncrypt(t pack.BlobType, data []byte, id *backend.ID
|
|||||||
err = r.idx.StoreInProgress(t, *id)
|
err = r.idx.StoreInProgress(t, *id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
debug.Log("Repo.Save", "another goroutine is already working on %v (%v) does already exist", id.Str, t)
|
debug.Log("Repo.Save", "another goroutine is already working on %v (%v) does already exist", id.Str, t)
|
||||||
return backend.ID{}, nil
|
return *id, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// find suitable packer and add blob
|
// find suitable packer and add blob
|
||||||
|
|||||||
Reference in new issue
Block a user