forked from TrueCloudLab/frostfs-node
[#1141] metabase: Fix putUniqueIndexItem
* `GetECHeader` is not correct way to determine if an object's got EC-header: `ECHeader` must be used for that. Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
8fd678e269
commit
89a80e9a0f
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ func putUniqueIndexes(
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if ecHead := obj.GetECHeader(); ecHead != nil {
|
if ecHead := obj.ECHeader(); ecHead != nil {
|
||||||
err = putECInfo(tx, cnr, objKey, ecHead)
|
err = putECInfo(tx, cnr, objKey, ecHead)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue