From caa1bda172b3dd1c1808e5aa865860dada494114 Mon Sep 17 00:00:00 2001 From: Jelte Fennema Date: Thu, 22 Jul 2021 16:50:35 +0200 Subject: [PATCH] Improve comment --- src/backend/distributed/commands/dependencies.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/distributed/commands/dependencies.c b/src/backend/distributed/commands/dependencies.c index 21d742c14..e30b3885c 100644 --- a/src/backend/distributed/commands/dependencies.c +++ b/src/backend/distributed/commands/dependencies.c @@ -138,6 +138,9 @@ EnsureDependenciesExistOnAllNodesInternal(const ObjectAddress *target, * before any node is in the cluster. If we would wait till we actually had connected * to the nodes before marking the objects as distributed these objects would never be * created on the workers when they get added, causing shards to fail to create. + * + * NOTE: We do this after creating the objects on the workers, otherwise + * MarkObjectDistributed would fail when localOnlyMarkdistributed is false. */ foreach_ptr(dependency, dependenciesWithCommands) {