diff --git a/src/backend/distributed/metadata/metadata_cache.c b/src/backend/distributed/metadata/metadata_cache.c index b1c80a1e2..ffbc7a0ab 100644 --- a/src/backend/distributed/metadata/metadata_cache.c +++ b/src/backend/distributed/metadata/metadata_cache.c @@ -2978,20 +2978,6 @@ GetWorkerNodeHash(void) } -/* - * GetWorkerNodeCount returns the number of worker nodes - * - * If the Worker Node cache is not (yet) valid, it is first rebuilt. - */ -int -GetWorkerNodeCount(void) -{ - PrepareWorkerNodeCache(); - - return WorkerNodeCount; -} - - /* * PrepareWorkerNodeCache makes sure the worker node data from pg_dist_node is cached, * if it is not already cached. diff --git a/src/include/distributed/metadata_cache.h b/src/include/distributed/metadata_cache.h index 4aa5e99fd..ec2475c2b 100644 --- a/src/include/distributed/metadata_cache.h +++ b/src/include/distributed/metadata_cache.h @@ -158,7 +158,6 @@ extern char LookupDistributionMethod(Oid distributionMethodOid); /* access WorkerNodeHash */ extern HTAB * GetWorkerNodeHash(void); -extern int GetWorkerNodeCount(void); extern WorkerNode * LookupNodeByNodeId(uint32 nodeId); extern WorkerNode * ForceLookupNodeByNodeId(uint32 nodeId); extern WorkerNode * LookupNodeForGroup(int32 groupId);