Skip to content

Commit 1d02c95

Browse files
committed
object: Deprecate PutRequest.Body.Init.copies_number field
Refs #352. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
1 parent ad519d0 commit 1d02c95

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
### Deprecated
1313
- Response verification header (#374)
14+
- `copies_number` field of `object.PutRequest.Body.Init` message (#382)
1415

1516
## [2.21.0] - 2026-02-03
1617

object/service.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ message PutRequest {
357357

358358
// Number of the object copies to store within the RPC call. By default
359359
// object is processed according to the container's placement policy.
360+
// DEPRECATED: use `PlacementPolicy.Initial.max_replicas` instead.
361+
// Servers ignore this field.
360362
uint32 copies_number = 4;
361363
}
362364
// Single message in the request stream.

proto-docs/object.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ are not set, they will be calculated by a peer node.
740740
| object_id | [neo.fs.v2.refs.ObjectID](#neo.fs.v2.refs.ObjectID) | | ObjectID if available. |
741741
| signature | [neo.fs.v2.refs.Signature](#neo.fs.v2.refs.Signature) | | Object signature if available |
742742
| header | [Header](#neo.fs.v2.object.Header) | | Object's Header. The maximum length is 16KB. |
743-
| copies_number | [uint32](#uint32) | | Number of the object copies to store within the RPC call. By default object is processed according to the container's placement policy. |
743+
| copies_number | [uint32](#uint32) | | Number of the object copies to store within the RPC call. By default object is processed according to the container's placement policy. DEPRECATED: use `PlacementPolicy.Initial.max_replicas` instead. Servers ignore this field. |
744744

745745

746746
<a name="neo.fs.v2.object.PutResponse"></a>

0 commit comments

Comments
 (0)