mirror of https://github.com/citusdata/citus.git
Fixes indentation
parent
754d5899f2
commit
71a733cdec
|
@ -1674,10 +1674,12 @@ RunPostprocessMainDBCommand(Node *parsetree)
|
||||||
MarkObjectDistributedInNonMainDb(parsetree, objectInfo);
|
MarkObjectDistributedInNonMainDb(parsetree, objectInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GetObjectInfo returns the name and oid of the object in the given parsetree.
|
* GetObjectInfo returns the name and oid of the object in the given parsetree.
|
||||||
*/
|
*/
|
||||||
static ObjectInfo GetObjectInfo(Node *parsetree)
|
static ObjectInfo
|
||||||
|
GetObjectInfo(Node *parsetree)
|
||||||
{
|
{
|
||||||
ObjectInfo info;
|
ObjectInfo info;
|
||||||
|
|
||||||
|
@ -1687,16 +1689,18 @@ static ObjectInfo GetObjectInfo(Node *parsetree)
|
||||||
info.name = stmt->role;
|
info.name = stmt->role;
|
||||||
info.id = get_role_oid(stmt->role, false);
|
info.id = get_role_oid(stmt->role, false);
|
||||||
}
|
}
|
||||||
// Add else if branches for other statement types
|
/* Add else if branches for other statement types */
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* MarkObjectDistributedInNonMainDb marks the given object as distributed on the
|
* MarkObjectDistributedInNonMainDb marks the given object as distributed on the
|
||||||
* non-main database.
|
* non-main database.
|
||||||
*/
|
*/
|
||||||
static void MarkObjectDistributedInNonMainDb( Node *parsetree, ObjectInfo objectInfo)
|
static void
|
||||||
|
MarkObjectDistributedInNonMainDb(Node *parsetree, ObjectInfo objectInfo)
|
||||||
{
|
{
|
||||||
StringInfo mainDBQuery = makeStringInfo();
|
StringInfo mainDBQuery = makeStringInfo();
|
||||||
appendStringInfo(mainDBQuery,
|
appendStringInfo(mainDBQuery,
|
||||||
|
@ -1709,7 +1713,6 @@ static void MarkObjectDistributedInNonMainDb( Node *parsetree, ObjectInfo object
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* IsStatementSupportedIn2Pc returns true if the statement is supported from a
|
* IsStatementSupportedIn2Pc returns true if the statement is supported from a
|
||||||
* non-main database.
|
* non-main database.
|
||||||
|
|
Loading…
Reference in New Issue