From 00c7e0cf82df9343e3ef8e5930b1a3aa7a64a346 Mon Sep 17 00:00:00 2001 From: Ahmet Gedemenli Date: Tue, 19 Jul 2022 12:39:25 +0300 Subject: [PATCH] Add comment --- src/backend/distributed/commands/dependencies.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/distributed/commands/dependencies.c b/src/backend/distributed/commands/dependencies.c index ac50557d5..8fc05b3fb 100644 --- a/src/backend/distributed/commands/dependencies.c +++ b/src/backend/distributed/commands/dependencies.c @@ -204,6 +204,10 @@ ErrorIfCircularDependencyExists(const ObjectAddress *objectAddress) * DeferErrorIfCircularDependencyExists is a wrapper function around * DeferErrorIfCircularDependencyExistsOnObject, which calls that function for * each dependency of the given object. + * We do this to detect objects like A -> B -> C <-> D. + * For this example, A is passed to this function but we will catch the circular + * dependency relationship between C and D, by calling + * DeferErrorIfCircularDependencyExistsOnObject for C, or D. */ DeferredErrorMessage * DeferErrorIfCircularDependencyExists(const ObjectAddress *objectAddress)