mirror of https://github.com/citusdata/citus.git
Update some comment in src/backend/distributed/metadata/metadata_utility.c
Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>remotes/c2main/clean-6496
parent
6dfc402ace
commit
23235fb848
|
@ -335,6 +335,8 @@ citus_table_size(PG_FUNCTION_ARGS)
|
|||
/*
|
||||
* citus_relation_size accept a relation name and returns a relation's 'main'
|
||||
* fork's size.
|
||||
*
|
||||
* Input relation is allowed to be an index on a distributed table too.
|
||||
*/
|
||||
Datum
|
||||
citus_relation_size(PG_FUNCTION_ARGS)
|
||||
|
@ -513,6 +515,7 @@ ReceiveShardIdAndSizeResults(List *connectionList, Tuplestorestate *tupleStore,
|
|||
* index belonging to a distributed table and size query can be run on it.
|
||||
* Connection to each node has to be established to get the size of the
|
||||
* relation.
|
||||
* Input relation is allowed to be an index on a distributed table too.
|
||||
*/
|
||||
static bool
|
||||
DistributedRelationSize(Oid relationId, SizeQueryType sizeQueryType,
|
||||
|
@ -578,6 +581,7 @@ DistributedRelationSize(Oid relationId, SizeQueryType sizeQueryType,
|
|||
* DistributedRelationSizeOnWorker gets the workerNode and relationId to calculate
|
||||
* size of that relation on the given workerNode by summing up the size of each
|
||||
* shard placement.
|
||||
* Input relation is allowed to be an index on a distributed table too.
|
||||
*/
|
||||
static bool
|
||||
DistributedRelationSizeOnWorker(WorkerNode *workerNode, Oid relationId,
|
||||
|
@ -787,9 +791,7 @@ GenerateSizeQueryOnMultiplePlacements(List *shardIntervalList,
|
|||
continue;
|
||||
}
|
||||
|
||||
/*
|
||||
* We need to build the shard relation name, being an index or table ...
|
||||
*/
|
||||
/* we need to build the shard relation name, being an index or table */
|
||||
Oid objectId = OidIsValid(indexId) ? indexId : shardInterval->relationId;
|
||||
|
||||
uint64 shardId = shardInterval->shardId;
|
||||
|
|
Loading…
Reference in New Issue