[#51] object: Introduce parentSplitParentID field in EC

* Replace `parentSplitIndex` by `parentSplitParentID` as the first
  one is inappropriate;
* Regenerate docs.

Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
This commit is contained in:
Airat Arifullin 2024-05-16 11:38:58 +03:00
parent cfb148ea0c
commit fd316479e2
2 changed files with 5 additions and 3 deletions

View file

@ -212,8 +212,10 @@ message Header {
// 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.
bytes parent_split_id = 6 [ json_name = "parentSplitID" ];
// Parent's index in Split.
uint32 parent_split_index = 7 [ json_name = "parentSplitIndex" ];
// 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.
neo.fs.v2.refs.ObjectID parent_split_parent_id = 7 [ json_name = "parentSplitParentID" ];
}
// Erasure code chunk information.
EC ec = 12 [ json_name = "ec" ];

View file

@ -1065,7 +1065,7 @@ All objects belonging to a single EC group have the same `parent` field.
| header_length | [uint32](#uint32) | | Total length of a parent header. Used to trim padding zeroes. |
| 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_index | [uint32](#uint32) | | Parent's index in Split. |
| 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. |
<a name="neo.fs.v2.object.Header.Split"></a>