Skip to content

Conversation

@cthulhu-rider
Copy link
Contributor

@cthulhu-rider cthulhu-rider added the enhancement Improving existing functionality label Feb 15, 2022
@cthulhu-rider cthulhu-rider self-assigned this Feb 15, 2022
@cthulhu-rider
Copy link
Contributor Author

I've added documentation of Object payload format for LOCK types. After the merge I will create an issue to add docs for all other types.

@cthulhu-rider cthulhu-rider marked this pull request as ready for review February 16, 2022 14:54
Copy link

@realloc realloc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets the others also review this.

Leonard Lyubich and others added 7 commits February 21, 2022 18:02
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 <[email protected]>
Add `status.Object` section for object failures. Add `LOCKED` and
`LOCK_NON_REGULAR_OBJECT` codes to it. Return these codes from `Put` and
`Delete` RPCs of `ObjectService`.

Signed-off-by: Leonard Lyubich <[email protected]>
Define `object.Lock` message which carries list of locked objects.
Require this message to be a payload of locked objects (`LOCK` type).

Signed-off-by: Leonard Lyubich <[email protected]>
Add `OBJECT_ALREADY_REMOVED` value to `Object` enumeration. Return this
status from object GET/HEAD/RANGE operations.

Signed-off-by: Leonard Lyubich <[email protected]>
@cthulhu-rider cthulhu-rider merged commit 2743e4b into nspcc-dev:master Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improving existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Define LOCK object type

4 participants