forked from TrueCloudLab/frostfs-s3-gw
[#186] Refactor objectSearch, fix objectPut
Fixed panic in objectPut() if input reader is nil Made objectSearch searching by any attribute Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
befe084900
commit
284a560ea6
3 changed files with 42 additions and 20 deletions
|
@ -587,7 +587,7 @@ func (n *layer) deleteObject(ctx context.Context, bkt *data.BucketInfo, obj *Ver
|
|||
obj.DeleteMarkVersion = objInfo.Version()
|
||||
}
|
||||
} else {
|
||||
ids, err = n.objectSearch(ctx, &findParams{cid: bkt.CID, val: obj.Name})
|
||||
ids, err = n.objectSearchByName(ctx, bkt.CID, obj.Name)
|
||||
if err != nil {
|
||||
obj.Error = err
|
||||
return obj
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue