forked from TrueCloudLab/frostfs-node
[#1136] metabase: Fix creation of ECInfoError
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
b4cfc80579
commit
d3fb732b16
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue