forked from TrueCloudLab/restic
Return the original backend ID on duplicate entries
This commit is contained in:
parent
f188cf81dc
commit
cc7acba02b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue