shard: Fix delete objects from FSTree #1261
1 changed files with 6 additions and 0 deletions
|
@ -117,6 +117,12 @@ func (s *Shard) deleteFromBlobstor(ctx context.Context, addr oid.Address) error
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
storageID := res.StorageID()
|
storageID := res.StorageID()
|
||||||
|
if storageID == nil {
|
||||||
|
// if storageID is nil it means:
|
||||||
|
// 1. there is no such object
|
||||||
|
|||||||
|
// 2. object stored by writecache: should not happen, as `validateWritecacheDoesntContainObject` called before `deleteFromBlobstor`
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
var delPrm common.DeletePrm
|
var delPrm common.DeletePrm
|
||||||
delPrm.Address = addr
|
delPrm.Address = addr
|
||||||
|
|
Loading…
Reference in a new issue
Why is it
nil
here, when it is an explicit empty slice inPut
?You are right, fixed.