Skip to content

Commit

Permalink
Fix bare domain backup collection behavior (#12266)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enjection authored Dec 4, 2024
1 parent 22abbae commit d215bee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ydb/core/kqp/host/kqp_gateway_proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ class TKqpGatewayProxy : public IKikimrGateway {
}

NKikimrSchemeOp::TModifyScheme tx;
tx.SetWorkingDir(GetDatabase());
tx.SetWorkingDir(GetDatabase() ? GetDatabase() : GetDomainName().GetOrElse(TString{}));
tx.SetOperationType(NKikimrSchemeOp::ESchemeOpCreateBackupCollection);

auto& op = *tx.MutableCreateBackupCollection();
Expand Down Expand Up @@ -1279,7 +1279,7 @@ class TKqpGatewayProxy : public IKikimrGateway {
}

NKikimrSchemeOp::TModifyScheme tx;
tx.SetWorkingDir(GetDatabase());
tx.SetWorkingDir(GetDatabase() ? GetDatabase() : GetDomainName().GetOrElse(TString{}));
tx.SetOperationType(NKikimrSchemeOp::ESchemeOpAlterBackupCollection);

auto& op = *tx.MutableAlterBackupCollection();
Expand Down Expand Up @@ -1326,7 +1326,7 @@ class TKqpGatewayProxy : public IKikimrGateway {
}

NKikimrSchemeOp::TModifyScheme tx;
tx.SetWorkingDir(GetDatabase());
tx.SetWorkingDir(GetDatabase() ? GetDatabase() : GetDomainName().GetOrElse(TString{}));
if (settings.Cascade) {
return MakeFuture(ResultFromError<TGenericResult>("Unimplemented"));
} else {
Expand Down Expand Up @@ -1374,7 +1374,7 @@ class TKqpGatewayProxy : public IKikimrGateway {
}

NKikimrSchemeOp::TModifyScheme tx;
tx.SetWorkingDir(GetDatabase());
tx.SetWorkingDir(GetDatabase() ? GetDatabase() : GetDomainName().GetOrElse(TString{}));
tx.SetOperationType(NKikimrSchemeOp::ESchemeOpBackupBackupCollection);

auto& op = *tx.MutableBackupBackupCollection();
Expand Down Expand Up @@ -1417,7 +1417,7 @@ class TKqpGatewayProxy : public IKikimrGateway {
}

NKikimrSchemeOp::TModifyScheme tx;
tx.SetWorkingDir(GetDatabase());
tx.SetWorkingDir(GetDatabase() ? GetDatabase() : GetDomainName().GetOrElse(TString{}));
tx.SetOperationType(NKikimrSchemeOp::ESchemeOpBackupIncrementalBackupCollection);

auto& op = *tx.MutableBackupIncrementalBackupCollection();
Expand Down

0 comments on commit d215bee

Please sign in to comment.