Add header.split.split_id header to object

In some cases like nspcc-dev/neofs-node#167 there is no simple way to identify
where does the object part belongs to. Adding `split_id` as the required field
will simplify split object processing.

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
Stanislav Bogatyrev 2020-11-17 09:37:12 +03:00 committed by Stanislav Bogatyrev
parent 3cdde6492b
commit 55c04e485e

View file

@ -133,6 +133,12 @@ message Header {
// List of identifiers of the objects generated by splitting current one.
repeated neo.fs.v2.refs.ObjectID children = 5 [json_name = "children"];
// 16 byte UUID used to identify the split object hierarchy parts. Must be
// unique inside container. All objects participaiting in the split must
// have the same `split_id` value.
bytes split_id = 6 [json_name = "splitID"];
}
// Position of the object in the split hierarchy
Split split = 11 [json_name = "split"];