aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstanislav_shchetinin <st-shchetinin@ydb.tech>2025-06-06 16:39:12 +0300
committerGitHub <noreply@github.com>2025-06-06 16:39:12 +0300
commit3a005c72bcbfa2f4a72e083f72140c1b1493c820 (patch)
treeddee5ede9ea799c56e57c7ee8f195915e3203c29
parent424e052ce7c308f87abb6fce8bc4b8e3dea4e0e1 (diff)
downloadydb-3a005c72bcbfa2f4a72e083f72140c1b1493c820.tar.gz
Enable topics export for grpc (#19416)
-rw-r--r--ydb/core/grpc_services/rpc_export.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/ydb/core/grpc_services/rpc_export.cpp b/ydb/core/grpc_services/rpc_export.cpp
index 321498cd669..a1d29d30273 100644
--- a/ydb/core/grpc_services/rpc_export.cpp
+++ b/ydb/core/grpc_services/rpc_export.cpp
@@ -50,13 +50,15 @@ class TExportRPC: public TRpcOperationRequestActor<TDerived, TEvRequest, true>,
}
static bool IsItemSupportedInExport(NSchemeCache::TSchemeCacheNavigate::EKind kind) {
- if (kind == NSchemeCache::TSchemeCacheNavigate::KindTable) {
- return true;
- }
- if (kind == NSchemeCache::TSchemeCacheNavigate::KindView) {
- return AppData()->FeatureFlags.GetEnableViewExport();
+ switch (kind) {
+ case NSchemeCache::TSchemeCacheNavigate::KindTable:
+ case NSchemeCache::TSchemeCacheNavigate::KindTopic:
+ return true;
+ case NSchemeCache::TSchemeCacheNavigate::KindView:
+ return AppData()->FeatureFlags.GetEnableViewExport();
+ default:
+ return false;
}
- return false;
}
static bool IsLikeDirectory(NSchemeCache::TSchemeCacheNavigate::EKind kind) {