From 3793783ed4f7250721e8f3a5f5810dbd4c975836 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 15 Feb 2022 08:06:19 +0300 Subject: [PATCH] [#194] object: Add `LOCK` type NeoFS introduces object LOCKs - a mechanism for locking an object from, for example, deletion. Object locks are implemented and stored in the container as objects, so there is a need to define a new type of system objects. Add `LOCK` value to `ObjectType` enum. Signed-off-by: Leonard Lyubich --- object/types.proto | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/object/types.proto b/object/types.proto index 63bed78..95cb8f1 100644 --- a/object/types.proto +++ b/object/types.proto @@ -9,13 +9,14 @@ import "refs/types.proto"; import "session/types.proto"; // Type of the object payload content. Only `REGULAR` type objects can be split, -// hence `TOMBSTONE` and `STORAGE_GROUP` payload is limited by maximal object -// size. +// hence `TOMBSTONE`, `STORAGE_GROUP` and `LOCK` payload is limited by maximal +// object size. // // String presentation of object type is the same as definition: // * REGULAR // * TOMBSTONE // * STORAGE_GROUP +// * LOCK enum ObjectType { // Just a normal object REGULAR = 0; @@ -25,6 +26,9 @@ enum ObjectType { // StorageGroup information STORAGE_GROUP = 2; + + // Object lock + LOCK = 3; } // Type of match expression