Improve comment

pg_dist_object-metadatasync
Jelte Fennema 2021-07-22 16:50:35 +02:00
parent a9669ab08a
commit caa1bda172
1 changed files with 3 additions and 0 deletions

View File

@ -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)
{