From 42c840f50bb5b605366ba79a925d613d196d9095 Mon Sep 17 00:00:00 2001 From: gurkanindibay Date: Sat, 10 Feb 2024 09:46:29 +0300 Subject: [PATCH] Fixes indentation --- src/backend/distributed/commands/role.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backend/distributed/commands/role.c b/src/backend/distributed/commands/role.c index 56059b35c..6e0aa0ba0 100644 --- a/src/backend/distributed/commands/role.c +++ b/src/backend/distributed/commands/role.c @@ -884,13 +884,12 @@ GenerateGrantRoleStmtsOfRole(Oid roleid) while (HeapTupleIsValid(tuple = systable_getnext(scan))) { - Form_pg_auth_members membership = (Form_pg_auth_members) GETSTRUCT(tuple); ObjectAddress *roleAddress = palloc0(sizeof(ObjectAddress)); ObjectAddressSet(*roleAddress, AuthIdRelationId, membership->grantor); - if (!IsAnyObjectDistributed(list_make1(roleAddress))){ - + if (!IsAnyObjectDistributed(list_make1(roleAddress))) + { /* we only need to propagate the grant if the grantor is distributed */ continue; }