mirror of https://github.com/citusdata/citus.git
Apply suggestions from code review
Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>pull/7563/head
parent
179f2e5fad
commit
62de6dc0b4
|
@ -699,12 +699,8 @@ List *
|
||||||
PreprocessAlterDatabaseOwnerStmt(Node *node, const char *queryString,
|
PreprocessAlterDatabaseOwnerStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext processUtilityContext)
|
ProcessUtilityContext processUtilityContext)
|
||||||
{
|
{
|
||||||
const DistributeObjectOps *ops = GetDistributeObjectOps(node);
|
if (!EnableAlterDatabaseOwner)
|
||||||
Assert(ops != NULL);
|
|
||||||
|
|
||||||
if (ops->featureFlag && *ops->featureFlag == false)
|
|
||||||
{
|
{
|
||||||
/* not propagating when a configured feature flag is turned off by the user */
|
|
||||||
return NIL;
|
return NIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -717,6 +713,7 @@ PreprocessAlterDatabaseOwnerStmt(Node *node, const char *queryString,
|
||||||
{
|
{
|
||||||
return NIL;
|
return NIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
EnsurePropagationToCoordinator();
|
EnsurePropagationToCoordinator();
|
||||||
|
|
||||||
AlterOwnerStmt *stmt = (AlterOwnerStmt *) node;
|
AlterOwnerStmt *stmt = (AlterOwnerStmt *) node;
|
||||||
|
|
|
@ -76,6 +76,10 @@ static bool GrantStmtCheckSupportedObjectType(Node *node);
|
||||||
static bool SecLabelStmtCheckSupportedObjectType(Node *node);
|
static bool SecLabelStmtCheckSupportedObjectType(Node *node);
|
||||||
static bool AlterDbRenameCheckSupportedObjectType(Node *node);
|
static bool AlterDbRenameCheckSupportedObjectType(Node *node);
|
||||||
static bool AlterDbOwnerCheckSupportedObjectType(Node *node);
|
static bool AlterDbOwnerCheckSupportedObjectType(Node *node);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* cannotBeExecutedInTransaction callbacks for OperationArray.
|
||||||
|
*/
|
||||||
static bool CannotBeExecutedInTransaction_True(Node *node);
|
static bool CannotBeExecutedInTransaction_True(Node *node);
|
||||||
static bool CannotBeExecutedInTransaction_False(Node *node);
|
static bool CannotBeExecutedInTransaction_False(Node *node);
|
||||||
static bool AlterDbCannotBeExecutedInTransaction(Node *node);
|
static bool AlterDbCannotBeExecutedInTransaction(Node *node);
|
||||||
|
|
|
@ -236,7 +236,6 @@ extern List * PreprocessAlterDatabaseRefreshCollStmt(Node *node, const char *que
|
||||||
processUtilityContext);
|
processUtilityContext);
|
||||||
extern List * PreprocessAlterDatabaseOwnerStmt(Node *node, const char *queryString,
|
extern List * PreprocessAlterDatabaseOwnerStmt(Node *node, const char *queryString,
|
||||||
ProcessUtilityContext processUtilityContext);
|
ProcessUtilityContext processUtilityContext);
|
||||||
|
|
||||||
extern List * GetDatabaseMetadataSyncCommands(Oid dbOid);
|
extern List * GetDatabaseMetadataSyncCommands(Oid dbOid);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue