Return the original backend ID on duplicate entries

This commit is contained in:
Alexander Neumann 2015-10-11 20:45:50 +02:00
parent f188cf81dc
commit cc7acba02b
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ func (r *Repository) SaveAndEncrypt(t pack.BlobType, data []byte, id *backend.ID
err = r.idx.StoreInProgress(t, *id)
if err != nil {
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