Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
d3fb732b16 [#1136] metabase: Fix creation of ECInfoError
All checks were successful
DCO action / DCO (pull_request) Successful in 6m46s
Vulncheck / Vulncheck (pull_request) Successful in 6m21s
Build / Build Components (1.22) (pull_request) Successful in 9m15s
Build / Build Components (1.21) (pull_request) Successful in 9m21s
Pre-commit hooks / Pre-commit (pull_request) Successful in 10m38s
Tests and linters / gopls check (pull_request) Successful in 11m54s
Tests and linters / Staticcheck (pull_request) Successful in 12m14s
Tests and linters / Lint (pull_request) Successful in 15m23s
Tests and linters / Tests (1.21) (pull_request) Successful in 21m55s
Tests and linters / Tests with -race (pull_request) Successful in 21m59s
Tests and linters / Tests (1.22) (pull_request) Successful in 3m13s
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
2024-05-15 13:18:10 +03:00

View file

@ -198,7 +198,7 @@ func getECInfoError(tx *bbolt.Tx, cnr cid.ID, data []byte) error {
key := data[offset : offset+objectKeySize]
// check in primary index
ojbData := getFromBucket(tx, primaryBucketName(cnr, make([]byte, bucketKeySize)), key)
if len(data) != 0 {
if len(ojbData) != 0 {
obj := objectSDK.New()
if err := obj.Unmarshal(ojbData); err != nil {
return err