From c7473ed98cf9034d9e719f412bac4e136326ff03 Mon Sep 17 00:00:00 2001 From: Airat Arifullin Date: Thu, 23 May 2024 22:40:45 +0300 Subject: [PATCH] [#52] object: Add `parent_attributes` field to EC-header Signed-off-by: Airat Arifullin --- object/types.proto | 2 ++ proto-docs/object.md | 1 + 2 files changed, 3 insertions(+) diff --git a/object/types.proto b/object/types.proto index 7591be7..2e2a343 100644 --- a/object/types.proto +++ b/object/types.proto @@ -216,6 +216,8 @@ message Header { // if an object ID of its parent is presented. The field allows to determine how EC-chunk is placed // in Split hierarchy. neo.fs.v2.refs.ObjectID parent_split_parent_id = 7 [ json_name = "parentSplitParentID" ]; + // EC parent's attributes. + repeated Attribute parent_attributes = 8 [ json_name = "parentAttributes" ]; } // Erasure code chunk information. EC ec = 12 [ json_name = "ec" ]; diff --git a/proto-docs/object.md b/proto-docs/object.md index 7f53a68..c141a60 100644 --- a/proto-docs/object.md +++ b/proto-docs/object.md @@ -1066,6 +1066,7 @@ All objects belonging to a single EC group have the same `parent` field. | header | [bytes](#bytes) | | Chunk of a parent header. | | parent_split_id | [bytes](#bytes) | | As the origin object is EC-splitted its identifier is known to all chunks as parent. But parent itself can be a part of Split (does not relate to EC-split). In this case parent_split_id should be set. | | parent_split_parent_id | [neo.fs.v2.refs.ObjectID](#neo.fs.v2.refs.ObjectID) | | EC-parent's parent ID. parent_split_parent_id is set if EC-parent, itself, is a part of Split and if an object ID of its parent is presented. The field allows to determine how EC-chunk is placed in Split hierarchy. | +| parent_attributes | [Header.Attribute](#neo.fs.v2.object.Header.Attribute) | repeated | EC parent's attributes. |