From f816d8add8a02de94cd3c6694a64a3b6db2c1002 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Tue, 23 Jan 2024 20:42:59 +0300 Subject: [PATCH] object: Add `LINK` object type This commit makes it easier to differ link objects from the other types. Object split hierarchy rework increases the link object's structure and makes it more strictly formatted, so now it plays a more important role in the split chains (and the split rules became more complex too). Signed-off-by: Pavel Karpy --- CHANGELOG.md | 1 + object/types.proto | 4 ++++ proto-docs/object.md | 2 ++ 3 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5269f2f..ca6c76c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Numeric operands for object search queries (#265) - Link object payload message (#263) - Children sizes index to the link objects (#264) +- `LINK` split chain object type (#283) ### Changed diff --git a/object/types.proto b/object/types.proto index c94ebda..f3dca1c 100644 --- a/object/types.proto +++ b/object/types.proto @@ -17,6 +17,7 @@ import "session/types.proto"; // * TOMBSTONE // * STORAGE_GROUP // * LOCK +// * LINK enum ObjectType { // Just a normal object REGULAR = 0; @@ -29,6 +30,9 @@ enum ObjectType { // Object lock LOCK = 3; + + // Object that stores child object IDs for the split objects. + LINK = 4; } // Type of match expression diff --git a/proto-docs/object.md b/proto-docs/object.md index 9f5f5f5..9c475af 100644 --- a/proto-docs/object.md +++ b/proto-docs/object.md @@ -1043,6 +1043,7 @@ String presentation of object type is the same as definition: * TOMBSTONE * STORAGE_GROUP * LOCK +* LINK | Name | Number | Description | | ---- | ------ | ----------- | @@ -1050,6 +1051,7 @@ String presentation of object type is the same as definition: | TOMBSTONE | 1 | Used internally to identify deleted objects | | STORAGE_GROUP | 2 | StorageGroup information | | LOCK | 3 | Object lock | +| LINK | 4 | Object that stores child object IDs for the split objects. |