From 5204db187b07b446d401b573f97852c04e5b5fdf Mon Sep 17 00:00:00 2001 From: Burak Velioglu Date: Tue, 11 Jan 2022 11:39:30 +0300 Subject: [PATCH] Remove stale comment --- src/backend/distributed/utils/reference_table_utils.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backend/distributed/utils/reference_table_utils.c b/src/backend/distributed/utils/reference_table_utils.c index 00cefead2..50ee92d0e 100644 --- a/src/backend/distributed/utils/reference_table_utils.c +++ b/src/backend/distributed/utils/reference_table_utils.c @@ -330,7 +330,8 @@ upgrade_to_reference_table(PG_FUNCTION_ARGS) /* * ReplicateShardToNode function replicates given shard to the given worker node * in a separate transaction. If the worker already has - * a replica of the shard this is a no-op. + * a replica of the shard this is a no-op. This function also modifies metadata + * by inserting/updating related rows in pg_dist_placement. * * IMPORTANT: This should only be used to replicate shards of a reference * table. @@ -550,8 +551,6 @@ ReferenceTableReplicationFactor(void) * table to update the replication factor column when necessary. This function * skips reference tables if that node already has healthy placement of that * reference table to prevent unnecessary data transfer. - * - * TODO: Make is static and updatr comment */ void ReplicateAllReferenceTablesToNode(char *nodeName, int nodePort)