Skip to content

Commit

Permalink
object: Add LINK object type
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
carpawell committed Feb 5, 2024
1 parent 39d130d commit f816d8a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions object/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import "session/types.proto";
// * TOMBSTONE
// * STORAGE_GROUP
// * LOCK
// * LINK
enum ObjectType {
// Just a normal object
REGULAR = 0;
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions proto-docs/object.md
Original file line number Diff line number Diff line change
Expand Up @@ -1043,13 +1043,15 @@ String presentation of object type is the same as definition:
* TOMBSTONE
* STORAGE_GROUP
* LOCK
* LINK

| Name | Number | Description |
| ---- | ------ | ----------- |
| REGULAR | 0 | Just a normal object |
| 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. |


<!-- end enums -->
Expand Down

0 comments on commit f816d8a

Please sign in to comment.