diff --git a/src/backend/distributed/deparser/deparse_database_stmts.c b/src/backend/distributed/deparser/deparse_database_stmts.c index 32b89b419..34c4a2dce 100644 --- a/src/backend/distributed/deparser/deparse_database_stmts.c +++ b/src/backend/distributed/deparser/deparse_database_stmts.c @@ -332,7 +332,7 @@ AppendDropDatabaseStmt(StringInfo buf, DropdbStmt *stmt) foreach_ptr(option, stmt->options) { - //if it is the first option then append with "WITH" else append with "," + /*if it is the first option then append with "WITH" else append with "," */ if (option == linitial(stmt->options)) { appendStringInfo(buf, " WITH ( "); @@ -353,12 +353,11 @@ AppendDropDatabaseStmt(StringInfo buf, DropdbStmt *stmt) option->defname))); } - //if it is the last option then append with ")" + /*if it is the last option then append with ")" */ if (option == llast(stmt->options)) { appendStringInfo(buf, " )"); } - } } diff --git a/src/backend/distributed/metadata/distobject.c b/src/backend/distributed/metadata/distobject.c index 9c5b6bf61..9f31add60 100644 --- a/src/backend/distributed/metadata/distobject.c +++ b/src/backend/distributed/metadata/distobject.c @@ -386,7 +386,7 @@ UnmarkNodeWideObjectsDistributed(Node *node) Oid dbOid = get_database_oid(dbName, stmt->missing_ok); ObjectAddress *dbObjectAddress = palloc0(sizeof(ObjectAddress)); ObjectAddressSet(*dbObjectAddress, DatabaseRelationId, dbOid); - if(IsAnyObjectDistributed(list_make1(dbObjectAddress))) + if (IsAnyObjectDistributed(list_make1(dbObjectAddress))) { UnmarkObjectDistributed(dbObjectAddress); }