[#17] object: Allow set copy_number for every placement vector

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
Pavel Karpy 2023-04-06 00:44:42 +03:00
parent fc393d4605
commit cbc038f84e
2 changed files with 11 additions and 3 deletions

View file

@ -311,9 +311,17 @@ message PutRequest {
// Object's Header
Header header = 3;
// Number of the object copies to store within the RPC call. By default
// Number of copies of the object to store within the RPC call. By default,
// object is processed according to the container's placement policy.
uint32 copies_number = 4;
// Can be one of:
// 1. A single number; applied to the whole request and is treated as
// a minimal number of nodes that must store an object to complete the
// request successfully.
// 2. An ordered array; every number is treated as a minimal number of
// nodes in a corresponding placement vector that must store an object
// to complete the request successfully. The length MUST equal the placement
// vectors number, otherwise request is considered malformed.
repeated uint32 copies_number = 4;
}
// Single message in the request stream.
oneof object_part {