Merge pull request #7 from nspcc-dev/put-header-copies-number

Add numerical field CopiesNumber into object.PutRequest.PutHeader
This commit is contained in:
Leonard Lyubich 2020-04-15 20:03:45 +03:00 committed by GitHub
commit 974aaee0a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -84,6 +84,8 @@ message PutRequest {
Object Object = 1; Object Object = 1;
// Token with session public key and user's signature // Token with session public key and user's signature
session.Token Token = 2; session.Token Token = 2;
// Number of the object copies to store within the RPC call (zero is processed according to the placement rules)
uint32 CopiesNumber = 3;
} }
oneof R { oneof R {

View file

@ -297,6 +297,7 @@ in distributed system.
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| Object | [Object](#object.Object) | | Object with at least container id and owner id fields | | Object | [Object](#object.Object) | | Object with at least container id and owner id fields |
| Token | [session.Token](#session.Token) | | Token with session public key and user's signature | | Token | [session.Token](#session.Token) | | Token with session public key and user's signature |
| CopiesNumber | [uint32](#uint32) | | Number of the object copies to store within RPC call (zero is processed according to the placement rules) |
<a name="object.PutResponse"></a> <a name="object.PutResponse"></a>