From 0993f2fb2c0d5d03c1be1131b7c8958a8d7a012b Mon Sep 17 00:00:00 2001 From: Onder Kalaci Date: Tue, 4 Oct 2016 09:51:42 +0300 Subject: [PATCH] Update ColocatedShardPlacementList() function name to ColocatedShardIntervalList() which was intented. --- src/backend/distributed/test/colocation_utils.c | 2 +- src/backend/distributed/utils/colocation_utils.c | 4 ++-- src/include/distributed/colocation_utils.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/distributed/test/colocation_utils.c b/src/backend/distributed/test/colocation_utils.c index 235fcb6e3..1e538edc7 100644 --- a/src/backend/distributed/test/colocation_utils.c +++ b/src/backend/distributed/test/colocation_utils.c @@ -119,7 +119,7 @@ get_colocated_shard_array(PG_FUNCTION_ARGS) ShardInterval *shardInterval = LoadShardInterval(shardId); ArrayType *colocatedShardsArrayType = NULL; - List *colocatedShardList = ColocatedShardPlacementList(shardInterval); + List *colocatedShardList = ColocatedShardIntervalList(shardInterval); ListCell *colocatedShardCell = NULL; int colocatedShardCount = list_length(colocatedShardList); Datum *colocatedShardsDatumArray = palloc0(colocatedShardCount * sizeof(Datum)); diff --git a/src/backend/distributed/utils/colocation_utils.c b/src/backend/distributed/utils/colocation_utils.c index 6fa822a17..776fbe089 100644 --- a/src/backend/distributed/utils/colocation_utils.c +++ b/src/backend/distributed/utils/colocation_utils.c @@ -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 * table, co-location is not valid for that shard. Therefore such shard is only co-located * with itself. */ List * -ColocatedShardPlacementList(ShardInterval *shardInterval) +ColocatedShardIntervalList(ShardInterval *shardInterval) { Oid distributedTableId = shardInterval->relationId; List *colocatedShardList = NIL; diff --git a/src/include/distributed/colocation_utils.h b/src/include/distributed/colocation_utils.h index 9612d5f1a..bd983ed43 100644 --- a/src/include/distributed/colocation_utils.h +++ b/src/include/distributed/colocation_utils.h @@ -22,6 +22,6 @@ extern bool TablesColocated(Oid leftDistributedTableId, Oid rightDistributedTabl extern bool ShardsColocated(ShardInterval *leftShardInterval, ShardInterval *rightShardInterval); extern List * ColocatedTableList(Oid distributedTableId); -extern List * ColocatedShardPlacementList(ShardInterval *shardInterval); +extern List * ColocatedShardIntervalList(ShardInterval *shardInterval); #endif /* COLOCATION_UTILS_H_ */