From b13d6763e773b03b2f82bd36e005d92d23b31317 Mon Sep 17 00:00:00 2001 From: Onur Tirtir Date: Thu, 29 Feb 2024 01:20:27 +0300 Subject: [PATCH] improve --- .../commands/non_main_db_distribute_object_ops.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/backend/distributed/commands/non_main_db_distribute_object_ops.c b/src/backend/distributed/commands/non_main_db_distribute_object_ops.c index c71052c3d..021fcf478 100644 --- a/src/backend/distributed/commands/non_main_db_distribute_object_ops.c +++ b/src/backend/distributed/commands/non_main_db_distribute_object_ops.c @@ -123,7 +123,11 @@ static List * DropRoleStmtGetUnmarkDistributedParams(Node *parsetree); /* * NonMainDbDistributeObjectOps for different command types. * - * Naming of these structs are stolen from distribute_object_ops.c. + * Naming of these structs are stolen from distribute_object_ops.c. We use + * "Any" if the command doesn't have any other variations or if the structs + * implements it for all variations. For example, while we name the struct + * for CreateRoleStmt as Any_CreateRole, we name the struct that implements + * SecLabelStmt for role objects as Role_SecLabel. */ static NonMainDbDistributeObjectOps Any_CreateRole = { .getMarkDistributedParams = CreateRoleStmtGetMarkDistributedParams,