File tree 2 files changed +3
-1
lines changed
compute/ydb/control_plane
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ class TCreateDatabaseRequestActor : public NActors::TActorBootstrapped<TCreateDa
289
289
void FillRequest (TEvYdbCompute::TEvCreateDatabaseRequest::TPtr& ev, const NConfig::TComputeDatabaseConfig& config) {
290
290
NYdb::NFq::TScope scope (ev.Get ()->Get ()->Scope );
291
291
ev.Get ()->Get ()->BasePath = config.GetControlPlaneConnection ().GetDatabase ();
292
- const TString databaseName = Config.GetYdb ().GetControlPlane ().GetDatabasePrefix () + scope.ParseFolder ();
292
+ const TString databaseName = TStringBuilder{} << Config.GetYdb ().GetControlPlane ().GetDatabasePrefix () << (config. GetId () ? config. GetId () + " _ " : TString{}) << scope.ParseFolder ();
293
293
ev.Get ()->Get ()->Path = config.GetTenant () ? config.GetTenant () + " /" + databaseName: databaseName;
294
294
}
295
295
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ message TWorkloadManagerConfig {
43
43
}
44
44
45
45
message TComputeDatabaseConfig {
46
+ string Id = 7 ;
46
47
TYdbStorageConfig ControlPlaneConnection = 1 ;
47
48
TYdbStorageConfig SchemeConnection = 6 ;
48
49
TYdbStorageConfig ExecutionConnection = 3 ;
@@ -58,6 +59,7 @@ message TDatabaseMapping {
58
59
59
60
message TYdbComputeControlPlane {
60
61
message TSingle {
62
+ string Id = 3 ;
61
63
TYdbStorageConfig Connection = 1 ;
62
64
TWorkloadManagerConfig WorkloadManagerConfig = 2 ;
63
65
}
You can’t perform that action at this time.
0 commit comments