mirror of
https://github.com/restic/restic.git
synced 2025-04-24 21:21:29 +00:00
Return the original backend ID on duplicate entries
This commit is contained in:
parent
f188cf81dc
commit
cc7acba02b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user