aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilnaz <ilnaz@ydb.tech>2023-04-04 18:36:29 +0300
committerilnaz <ilnaz@ydb.tech>2023-04-04 18:36:29 +0300
commitc54a8c24834499a7f9ae9bb8b79408990a231fd7 (patch)
treed40acc6086fc60793aab50917a3520b03fd4d22e
parenteae406170c263f43ee06d8e794ae331db7397a79 (diff)
downloadydb-c54a8c24834499a7f9ae9bb8b79408990a231fd7.tar.gz
'Region' option in ImportService
-rw-r--r--ydb/core/tx/schemeshard/schemeshard_import_flow_proposals.cpp4
-rw-r--r--ydb/public/api/protos/ydb_import.proto3
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 {