mirror of https://github.com/citusdata/citus.git
wip
parent
6c25eea62f
commit
aef3eb8c23
|
@ -29,7 +29,6 @@
|
|||
|
||||
typedef bool (*AddressPredicate)(const ObjectAddress *);
|
||||
|
||||
static int ObjectAddressComparator(const void *a, const void *b);
|
||||
static List * GetDependencyCreateDDLCommands(const ObjectAddress *dependency);
|
||||
static List * FilterObjectAddressListByPredicate(List *objectAddressList,
|
||||
AddressPredicate predicate);
|
||||
|
@ -136,7 +135,7 @@ EnsureDependenciesExistOnAllNodes(const ObjectAddress *target)
|
|||
/*
|
||||
* Copied from PG object_address_comparator function to compare ObjectAddresses.
|
||||
*/
|
||||
static int
|
||||
int
|
||||
ObjectAddressComparator(const void *a, const void *b)
|
||||
{
|
||||
const ObjectAddress *obja = (const ObjectAddress *) a;
|
||||
|
|
|
@ -823,6 +823,8 @@ MarkObjectsDistributedCreateCommand(List *addresses,
|
|||
List *colocationIds,
|
||||
List *forceDelegations)
|
||||
{
|
||||
addresses = SortList(addresses, ObjectAddressComparator);
|
||||
|
||||
StringInfo insertDistributedObjectsCommand = makeStringInfo();
|
||||
|
||||
Assert(list_length(addresses) == list_length(distributionArgumentIndexes));
|
||||
|
|
|
@ -250,6 +250,7 @@ extern List * GetDistributableDependenciesForObject(const ObjectAddress *target)
|
|||
extern bool ShouldPropagate(void);
|
||||
extern bool ShouldPropagateObject(const ObjectAddress *address);
|
||||
extern List * ReplicateAllObjectsToNodeCommandList(const char *nodeName, int nodePort);
|
||||
extern int ObjectAddressComparator(const void *a, const void *b);
|
||||
|
||||
/* Remaining metadata utility functions */
|
||||
extern char * TableOwner(Oid relationId);
|
||||
|
|
Loading…
Reference in New Issue