[#217] storage engine: Transform Inhume to batch operation
Make `StorageEngine.Inhume` to process list of objects per single operation. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
53b4d6d6d0
commit
7a4e3efa95
2 changed files with 21 additions and 14 deletions
|
@ -108,7 +108,7 @@ func (r *localObjectInhumer) DeleteObjects(ts *objectSDK.Address, addr ...*objec
|
|||
prm := new(engine.InhumePrm)
|
||||
|
||||
for _, a := range addr {
|
||||
prm.WithTarget(a, ts)
|
||||
prm.WithTarget(ts, a)
|
||||
|
||||
if _, err := r.storage.Inhume(prm); err != nil {
|
||||
r.log.Error("could not delete object",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue