[#1136] metabase: Fix creation of ECInfoError

Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
Anton Nikiforov 2024-05-15 13:06:50 +03:00
parent b4cfc80579
commit d3fb732b16

View file

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