Put split parent object ID for EC chunks #1256

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:fix/ec_split_parent_id_put into master 2024-07-18 08:49:19 +00:00
Showing only changes of commit 27caa8a72f - Show all commits

View file

@ -356,6 +356,18 @@ func updateListIndexes(tx *bbolt.Tx, obj *objectSDK.Object, f updateIndexItemFun
return err
}
}
if parentSplitParentID := ech.ParentSplitParentID(); parentSplitParentID != nil {
objKey := objectKey(ech.Parent(), make([]byte, objectKeySize))
err := f(tx, namedBucketItem{
name: parentBucketName(cnr, bucketName),
key: objectKey(*parentSplitParentID, make([]byte, objectKeySize)),
val: objKey,
})
if err != nil {
return err
}
}
}
return nil