aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorInnokentii Mokin <innokentii@ydb.tech>2024-12-04 12:40:42 +0300
committerGitHub <noreply@github.com>2024-12-04 12:40:42 +0300
commitd215bee2133240c360a5b745e3c41d8698e9bb57 (patch)
tree7464faae65ae5b26e7e0be279c55baa4d9d87610
parent22abbae654e0cd13fec8fcebe39410e1c68cef79 (diff)
downloadydb-d215bee2133240c360a5b745e3c41d8698e9bb57.tar.gz
Fix bare domain backup collection behavior (#12266)
-rw-r--r--ydb/core/kqp/host/kqp_gateway_proxy.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ydb/core/kqp/host/kqp_gateway_proxy.cpp b/ydb/core/kqp/host/kqp_gateway_proxy.cpp
index 2c02d7a7fe..caae4290ed 100644
--- a/ydb/core/kqp/host/kqp_gateway_proxy.cpp
+++ b/ydb/core/kqp/host/kqp_gateway_proxy.cpp
@@ -1209,7 +1209,7 @@ public:
}
NKikimrSchemeOp::TModifyScheme tx;
- tx.SetWorkingDir(GetDatabase());
+ tx.SetWorkingDir(GetDatabase() ? GetDatabase() : GetDomainName().GetOrElse(TString{}));
tx.SetOperationType(NKikimrSchemeOp::ESchemeOpCreateBackupCollection);
auto& op = *tx.MutableCreateBackupCollection();
@@ -1279,7 +1279,7 @@ public:
}
NKikimrSchemeOp::TModifyScheme tx;
- tx.SetWorkingDir(GetDatabase());
+ tx.SetWorkingDir(GetDatabase() ? GetDatabase() : GetDomainName().GetOrElse(TString{}));
tx.SetOperationType(NKikimrSchemeOp::ESchemeOpAlterBackupCollection);
auto& op = *tx.MutableAlterBackupCollection();
@@ -1326,7 +1326,7 @@ public:
}
NKikimrSchemeOp::TModifyScheme tx;
- tx.SetWorkingDir(GetDatabase());
+ tx.SetWorkingDir(GetDatabase() ? GetDatabase() : GetDomainName().GetOrElse(TString{}));
if (settings.Cascade) {
return MakeFuture(ResultFromError<TGenericResult>("Unimplemented"));
} else {
@@ -1374,7 +1374,7 @@ public:
}
NKikimrSchemeOp::TModifyScheme tx;
- tx.SetWorkingDir(GetDatabase());
+ tx.SetWorkingDir(GetDatabase() ? GetDatabase() : GetDomainName().GetOrElse(TString{}));
tx.SetOperationType(NKikimrSchemeOp::ESchemeOpBackupBackupCollection);
auto& op = *tx.MutableBackupBackupCollection();
@@ -1417,7 +1417,7 @@ public:
}
NKikimrSchemeOp::TModifyScheme tx;
- tx.SetWorkingDir(GetDatabase());
+ tx.SetWorkingDir(GetDatabase() ? GetDatabase() : GetDomainName().GetOrElse(TString{}));
tx.SetOperationType(NKikimrSchemeOp::ESchemeOpBackupIncrementalBackupCollection);
auto& op = *tx.MutableBackupIncrementalBackupCollection();