[#26] object: Remove unused Version field

Field with object revision number was introduced for the future, however, at
the moment it is not used anywhere. This commit removes field Version from
SystemHeader message. It can be added back later without losing API
backward compatibility.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-08-04 17:14:20 +03:00 committed by Stanislav Bogatyrev
parent 9666fd4bc7
commit 7ce0945e6c
2 changed files with 4 additions and 7 deletions

View file

@ -44,17 +44,15 @@ message ExtendedHeader {
message Tombstone {} message Tombstone {}
message SystemHeader { message SystemHeader {
// Version of the object structure
uint64 Version = 1;
// PayloadLength is an object payload length // PayloadLength is an object payload length
uint64 PayloadLength = 2; uint64 PayloadLength = 1;
// Address carries object address in the NeoFS system. // Address carries object address in the NeoFS system.
// It encapsulates the object and the container identifiers. // It encapsulates the object and the container identifiers.
refs.Address Address = 3; refs.Address Address = 2;
// OwnerID is a wallet address // OwnerID is a wallet address
bytes OwnerID = 4; bytes OwnerID = 3;
// CreationEpoch carries number of NeoFS epoch on which the object was created. // CreationEpoch carries number of NeoFS epoch on which the object was created.
uint64 CreationEpoch = 6; uint64 CreationEpoch = 4;
} }
message IntegrityHeader { message IntegrityHeader {

View file

@ -476,7 +476,6 @@ SplitHeader groups information about spawning the object through a payload split
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| Version | [uint64](#uint64) | | Version of the object structure |
| PayloadLength | [uint64](#uint64) | | PayloadLength is an object payload length | | PayloadLength | [uint64](#uint64) | | PayloadLength is an object payload length |
| Address | [refs.Address](#refs.Address) | | Address carries object address in the NeoFS system. It encapsulates the object and the container identifiers. | | Address | [refs.Address](#refs.Address) | | Address carries object address in the NeoFS system. It encapsulates the object and the container identifiers. |
| OwnerID | [bytes](#bytes) | | OwnerID is a wallet address | | OwnerID | [bytes](#bytes) | | OwnerID is a wallet address |