Skip to content

Commit

Permalink
tombstone: Mark expiration_epoch field as deprecated
Browse files Browse the repository at this point in the history
There is no need to transfer data that's already set in other place and
require equality.

Closes #215.

Signed-off-by: Leonard Lyubich <[email protected]>
  • Loading branch information
cthulhu-rider committed Feb 26, 2024
1 parent dcead71 commit 4199b40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
### Removed

### Deprecated
- `Tombstone.expiration_epoch` field in favor of corresponding object attribute (#215)

## [2.15.0] - 2024-01-30

Expand Down
2 changes: 1 addition & 1 deletion proto-docs/tombstone.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ purged from the NeoFS network.

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| expiration_epoch | [uint64](#uint64) | | Last NeoFS epoch number of the tombstone lifetime. It's set by the tombstone creator depending on the current NeoFS network settings. A tombstone object must have the same expiration epoch value in `__NEOFS__EXPIRATION_EPOCH` attribute. Otherwise, the tombstone will be rejected by a storage node. |
| expiration_epoch | [uint64](#uint64) | | Last NeoFS epoch number of the tombstone lifetime. It's set by the tombstone creator depending on the current NeoFS network settings. A tombstone object must have the same expiration epoch value in `__NEOFS__EXPIRATION_EPOCH` attribute. Otherwise, the tombstone will be rejected by a storage node. DEPRECATED. Set corresponding object attribute only. |
| split_id | [bytes](#bytes) | | 16 byte UUID used to identify the split object hierarchy parts. Must be unique inside a container. All objects participating in the split must have the same `split_id` value. |
| members | [neo.fs.v2.refs.ObjectID](#neo.fs.v2.refs.ObjectID) | repeated | List of objects to be deleted. |

Expand Down
3 changes: 2 additions & 1 deletion tombstone/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ message Tombstone {
// creator depending on the current NeoFS network settings. A tombstone object
// must have the same expiration epoch value in `__NEOFS__EXPIRATION_EPOCH`
// attribute. Otherwise, the tombstone will be rejected by a storage node.
uint64 expiration_epoch = 1 [json_name = "expirationEpoch"];
// DEPRECATED. Set corresponding object attribute only.
uint64 expiration_epoch = 1 [json_name = "expirationEpoch", deprecated = true];

// 16 byte UUID used to identify the split object hierarchy parts. Must be
// unique inside a container. All objects participating in the split must
Expand Down

0 comments on commit 4199b40

Please sign in to comment.