[#9999] shard: Check storage id on delete
Some checks failed
DCO action / DCO (pull_request) Successful in 1m33s
Vulncheck / Vulncheck (pull_request) Successful in 2m7s
Tests and linters / Lint (pull_request) Failing after 2m15s
Tests and linters / Staticcheck (pull_request) Successful in 2m14s
Build / Build Components (pull_request) Successful in 2m27s
Tests and linters / gopls check (pull_request) Successful in 2m58s
Tests and linters / Tests (pull_request) Successful in 3m18s
Tests and linters / Tests with -race (pull_request) Successful in 3m49s
Some checks failed
DCO action / DCO (pull_request) Successful in 1m33s
Vulncheck / Vulncheck (pull_request) Successful in 2m7s
Tests and linters / Lint (pull_request) Failing after 2m15s
Tests and linters / Staticcheck (pull_request) Successful in 2m14s
Build / Build Components (pull_request) Successful in 2m27s
Tests and linters / gopls check (pull_request) Successful in 2m58s
Tests and linters / Tests (pull_request) Successful in 3m18s
Tests and linters / Tests with -race (pull_request) Successful in 3m49s
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
c06ab2595b
commit
718f2bb5d6
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
|
||||
}
|
||||
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
|
||||
delPrm.Address = addr
|
||||
|
|
Loading…
Reference in a new issue