mirror of https://github.com/citusdata/citus.git
Update ColocatedShardPlacementList() function name to
ColocatedShardIntervalList() which was intented.pull/838/head
parent
09e3d5fd47
commit
0993f2fb2c
|
@ -119,7 +119,7 @@ get_colocated_shard_array(PG_FUNCTION_ARGS)
|
||||||
ShardInterval *shardInterval = LoadShardInterval(shardId);
|
ShardInterval *shardInterval = LoadShardInterval(shardId);
|
||||||
|
|
||||||
ArrayType *colocatedShardsArrayType = NULL;
|
ArrayType *colocatedShardsArrayType = NULL;
|
||||||
List *colocatedShardList = ColocatedShardPlacementList(shardInterval);
|
List *colocatedShardList = ColocatedShardIntervalList(shardInterval);
|
||||||
ListCell *colocatedShardCell = NULL;
|
ListCell *colocatedShardCell = NULL;
|
||||||
int colocatedShardCount = list_length(colocatedShardList);
|
int colocatedShardCount = list_length(colocatedShardList);
|
||||||
Datum *colocatedShardsDatumArray = palloc0(colocatedShardCount * sizeof(Datum));
|
Datum *colocatedShardsDatumArray = palloc0(colocatedShardCount * sizeof(Datum));
|
||||||
|
|
|
@ -162,13 +162,13 @@ ColocatedTableList(Oid distributedTableId)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ColocatedShardPlacementList function returns list of shard intervals which are
|
* ColocatedShardIntervalList function returns list of shard intervals which are
|
||||||
* co-located with given shard. If given shard is belong to append or range distributed
|
* co-located with given shard. If given shard is belong to append or range distributed
|
||||||
* table, co-location is not valid for that shard. Therefore such shard is only co-located
|
* table, co-location is not valid for that shard. Therefore such shard is only co-located
|
||||||
* with itself.
|
* with itself.
|
||||||
*/
|
*/
|
||||||
List *
|
List *
|
||||||
ColocatedShardPlacementList(ShardInterval *shardInterval)
|
ColocatedShardIntervalList(ShardInterval *shardInterval)
|
||||||
{
|
{
|
||||||
Oid distributedTableId = shardInterval->relationId;
|
Oid distributedTableId = shardInterval->relationId;
|
||||||
List *colocatedShardList = NIL;
|
List *colocatedShardList = NIL;
|
||||||
|
|
|
@ -22,6 +22,6 @@ extern bool TablesColocated(Oid leftDistributedTableId, Oid rightDistributedTabl
|
||||||
extern bool ShardsColocated(ShardInterval *leftShardInterval,
|
extern bool ShardsColocated(ShardInterval *leftShardInterval,
|
||||||
ShardInterval *rightShardInterval);
|
ShardInterval *rightShardInterval);
|
||||||
extern List * ColocatedTableList(Oid distributedTableId);
|
extern List * ColocatedTableList(Oid distributedTableId);
|
||||||
extern List * ColocatedShardPlacementList(ShardInterval *shardInterval);
|
extern List * ColocatedShardIntervalList(ShardInterval *shardInterval);
|
||||||
|
|
||||||
#endif /* COLOCATION_UTILS_H_ */
|
#endif /* COLOCATION_UTILS_H_ */
|
||||||
|
|
Loading…
Reference in New Issue