Fix GetUndistributableDependency (#7124)

This is a leftover task from merging enterprise to community.
Roles are distributed in community now, the comment is stale and the
check is redundant.
pull/7113/head
Naisila Puka 2023-08-17 10:57:22 +03:00 committed by GitHub
parent a2315fdc67
commit 71c475af52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -1022,13 +1022,11 @@ GetUndistributableDependency(const ObjectAddress *objectAddress)
if (!SupportedDependencyByCitus(dependency)) if (!SupportedDependencyByCitus(dependency))
{ {
/* /*
* Skip roles and text search templates. * Since we do not yet support distributed TS TEMPLATE objects, we skip
* * dependency checks for text search templates. The user is expected to
* Roles should be handled manually with Citus community whereas text search * manually create the TS TEMPLATE objects.
* templates should be handled manually in both community and enterprise
*/ */
if (getObjectClass(dependency) != OCLASS_ROLE && if (getObjectClass(dependency) != OCLASS_TSTEMPLATE)
getObjectClass(dependency) != OCLASS_TSTEMPLATE)
{ {
return dependency; return dependency;
} }