diff options
author | ilnaz <ilnaz@ydb.tech> | 2023-04-04 18:36:29 +0300 |
---|---|---|
committer | ilnaz <ilnaz@ydb.tech> | 2023-04-04 18:36:29 +0300 |
commit | c54a8c24834499a7f9ae9bb8b79408990a231fd7 (patch) | |
tree | d40acc6086fc60793aab50917a3520b03fd4d22e | |
parent | eae406170c263f43ee06d8e794ae331db7397a79 (diff) | |
download | ydb-c54a8c24834499a7f9ae9bb8b79408990a231fd7.tar.gz |
'Region' option in ImportService
-rw-r--r-- | ydb/core/tx/schemeshard/schemeshard_import_flow_proposals.cpp | 4 | ||||
-rw-r--r-- | ydb/public/api/protos/ydb_import.proto | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ydb/core/tx/schemeshard/schemeshard_import_flow_proposals.cpp b/ydb/core/tx/schemeshard/schemeshard_import_flow_proposals.cpp index 79350ee658c..eaf192f4508 100644 --- a/ydb/core/tx/schemeshard/schemeshard_import_flow_proposals.cpp +++ b/ydb/core/tx/schemeshard/schemeshard_import_flow_proposals.cpp @@ -137,6 +137,10 @@ THolder<TEvSchemeShard::TEvModifySchemeTransaction> RestorePropose( default: Y_FAIL("Unknown scheme"); } + + if (const auto region = importInfo->Settings.region()) { + restoreSettings.SetRegion(region); + } } break; } diff --git a/ydb/public/api/protos/ydb_import.proto b/ydb/public/api/protos/ydb_import.proto index 924b49eea2d..53eb5a88148 100644 --- a/ydb/public/api/protos/ydb_import.proto +++ b/ydb/public/api/protos/ydb_import.proto @@ -58,6 +58,9 @@ message ImportFromS3Settings { repeated Item items = 6 [(size).ge = 1]; string description = 7 [(length).le = 128]; uint32 number_of_retries = 8; + + // Region to use in requests + string region = 9; } message ImportFromS3Result { |