diff options
author | Alexander Rutkovsky <alexvru@ydb.tech> | 2025-04-15 15:32:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-15 12:32:44 +0000 |
commit | b3c658f38ac51d94abaf2a9ec427a60f96dd1be9 (patch) | |
tree | 434e453ab4d3c8d3b9836ecfd4bbd0434ad19681 | |
parent | 301555f22b143e138d38d2a1673aa866eb1b78a1 (diff) | |
download | ydb-b3c658f38ac51d94abaf2a9ec427a60f96dd1be9.tar.gz |
Fix channel profile creation (#17204)
-rw-r--r-- | ydb/apps/dstool/lib/dstool_cmd_group_virtual_create.py | 4 | ||||
-rw-r--r-- | ydb/core/protos/blob_depot_config.proto | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ydb/apps/dstool/lib/dstool_cmd_group_virtual_create.py b/ydb/apps/dstool/lib/dstool_cmd_group_virtual_create.py index 54bc3aca8ac..b96993d1b2e 100644 --- a/ydb/apps/dstool/lib/dstool_cmd_group_virtual_create.py +++ b/ydb/apps/dstool/lib/dstool_cmd_group_virtual_create.py @@ -53,9 +53,9 @@ def do(args): if s3_settings is not None: pb_json.Parse(s3_settings, cmd.S3BackendSettings) - cmd.ChannelProfiles.add(StoragePoolName=args.log_channel_sp, ChannelKind=blob_depot_config.TChannelKind.System) + cmd.ChannelProfiles.add(StoragePoolName=args.log_channel_sp, ChannelKind=blob_depot_config.TChannelKind.System, Count=1) chan1 = args.snapshot_channel_sp if args.snapshot_channel_sp is not None else args.log_channel_sp - cmd.ChannelProfiles.add(StoragePoolName=chan1, ChannelKind=blob_depot_config.TChannelKind.System) + cmd.ChannelProfiles.add(StoragePoolName=chan1, ChannelKind=blob_depot_config.TChannelKind.System, Count=1) for data_sp in args.data_channel_sp: pool_name, sep, count = data_sp.rpartition('*') if sep == '*': diff --git a/ydb/core/protos/blob_depot_config.proto b/ydb/core/protos/blob_depot_config.proto index ab0ae975448..ea6556c336e 100644 --- a/ydb/core/protos/blob_depot_config.proto +++ b/ydb/core/protos/blob_depot_config.proto @@ -14,7 +14,7 @@ message TChannelKind { message TChannelProfile { optional string StoragePoolName = 1; // used when creating tablet through BSC -> Hive optional string StoragePoolKind = 2; // used when creating tablet through Schemeshard - optional uint32 Count = 3; + optional uint32 Count = 3 [default = 1]; optional TChannelKind.E ChannelKind = 4; } |