forked from TrueCloudLab/frostfs-node
[#186] localstorage: Fix address forwarding in Delete method
In previous implementation storage engine not forwarded object address to shards. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
4ca1035aa4
commit
0b515837ca
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,8 @@ func (p *DeletePrm) WithAddress(addr *objectSDK.Address) *DeletePrm {
|
|||
// Returns any error encountered that did not allow to completely
|
||||
// mark the object to delete.
|
||||
func (e *StorageEngine) Delete(prm *DeletePrm) (*DeleteRes, error) {
|
||||
shPrm := new(shard.DeletePrm)
|
||||
shPrm := new(shard.DeletePrm).
|
||||
WithAddress(prm.addr)
|
||||
|
||||
e.iterateOverSortedShards(prm.addr, func(sh *shard.Shard) (stop bool) {
|
||||
_, err := sh.Delete(shPrm)
|
||||
|
|
Loading…
Reference in a new issue