From 8f49991b5bafdaf52da8fbaad879d609db2d69d1 Mon Sep 17 00:00:00 2001 From: Airat Arifullin Date: Wed, 23 Apr 2025 17:22:03 +0300 Subject: [PATCH] [#86] netmap: Introduce wildcard for `Replica` * Add a new field `wildcard` to `Replica`; * Regenerate docs. Signed-off-by: Airat Arifullin --- netmap/types.proto | 4 ++++ proto-docs/netmap.md | 1 + 2 files changed, 5 insertions(+) diff --git a/netmap/types.proto b/netmap/types.proto index b76b3c1..27947dc 100644 --- a/netmap/types.proto +++ b/netmap/types.proto @@ -112,6 +112,10 @@ message Replica { // Parity shards count uint32 ec_parity_count = 4 [ json_name = "ecParityCount" ]; + + // Use all nodes from the node set defined by the selector. + // This flag is applicable only to the 'REP' selector and cannot be used for 'EC'. + bool wildcard = 5 [ json_name = "wildcard" ]; } // Set of rules to select a subset of nodes from `NetworkMap` able to store diff --git a/proto-docs/netmap.md b/proto-docs/netmap.md index b49287c..2ac7c26 100644 --- a/proto-docs/netmap.md +++ b/proto-docs/netmap.md @@ -515,6 +515,7 @@ default. | selector | [string](#string) | | Named selector bucket to put replicas | | ec_data_count | [uint32](#uint32) | | Data shards count | | ec_parity_count | [uint32](#uint32) | | Parity shards count | +| wildcard | [bool](#bool) | | Use all nodes from the node set defined by the selector. This flag is applicable only to the 'REP' selector and cannot be used for 'EC'. |