diff options
author | stanislav_shchetinin <st-shchetinin@ydb.tech> | 2025-06-06 16:39:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-06 16:39:12 +0300 |
commit | 3a005c72bcbfa2f4a72e083f72140c1b1493c820 (patch) | |
tree | ddee5ede9ea799c56e57c7ee8f195915e3203c29 | |
parent | 424e052ce7c308f87abb6fce8bc4b8e3dea4e0e1 (diff) | |
download | ydb-3a005c72bcbfa2f4a72e083f72140c1b1493c820.tar.gz |
Enable topics export for grpc (#19416)
-rw-r--r-- | ydb/core/grpc_services/rpc_export.cpp | 14 |
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) { |