From 020b7cb44e42def655dc13809ce8ea6084f76cbf Mon Sep 17 00:00:00 2001 From: Tomas Vondra Date: Sun, 28 Aug 2016 13:16:17 +0200 Subject: [PATCH] rename adjustSubplanDistribution() to adjust_subplan_distribution() A cosmetic change to so that the whole file uses the same naming style. --- src/backend/optimizer/plan/createplan.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backend/optimizer/plan/createplan.c b/src/backend/optimizer/plan/createplan.c index ef0055c6fb..a69d2eae82 100644 --- a/src/backend/optimizer/plan/createplan.c +++ b/src/backend/optimizer/plan/createplan.c @@ -79,7 +79,7 @@ static Result *create_result_plan(PlannerInfo *root, ResultPath *best_path); static Material *create_material_plan(PlannerInfo *root, MaterialPath *best_path); static Plan *create_unique_plan(PlannerInfo *root, UniquePath *best_path); #ifdef XCP -static void adjustSubplanDistribution(PlannerInfo *root, Distribution *pathd, +static void adjust_subplan_distribution(PlannerInfo *root, Distribution *pathd, Distribution *subd); static RemoteSubplan *create_remotescan_plan(PlannerInfo *root, RemoteSubPath *best_path); @@ -240,7 +240,7 @@ create_plan(PlannerInfo *root, Path *best_path) root->curOuterParams = NIL; #ifdef XCP root->curOuterRestrict = NULL; - adjustSubplanDistribution(root, root->distribution, + adjust_subplan_distribution(root, root->distribution, best_path->distribution); #endif @@ -1157,11 +1157,11 @@ create_unique_plan(PlannerInfo *root, UniquePath *best_path) #ifdef XCP /* - * adjustSubplanDistribution + * adjust_subplan_distribution * Make sure the distribution of the subplan is matching to the consumers. */ static void -adjustSubplanDistribution(PlannerInfo *root, Distribution *pathd, +adjust_subplan_distribution(PlannerInfo *root, Distribution *pathd, Distribution *subd) { /* Replace path restriction with actual */ @@ -1249,7 +1249,7 @@ create_remotescan_plan(PlannerInfo *root, */ saverestrict = root->curOuterRestrict; - adjustSubplanDistribution(root, best_path->path.distribution, + adjust_subplan_distribution(root, best_path->path.distribution, best_path->subpath->distribution); subplan = create_plan_recurse(root, best_path->subpath); -- 2.39.5