From d7fa9a5e3696368f8922dfb872b95078950cbbf6 Mon Sep 17 00:00:00 2001 From: gindibay Date: Thu, 7 Dec 2023 12:53:14 +0300 Subject: [PATCH] Fixes indentation --- .../distributed/executor/adaptive_executor.c | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/src/backend/distributed/executor/adaptive_executor.c b/src/backend/distributed/executor/adaptive_executor.c index f6f6feb59..8a7e5432d 100644 --- a/src/backend/distributed/executor/adaptive_executor.c +++ b/src/backend/distributed/executor/adaptive_executor.c @@ -729,11 +729,10 @@ static uint64 MicrosecondsBetweenTimestamps(instr_time startTime, instr_time end static int WorkerPoolCompare(const void *lhsKey, const void *rhsKey); static void SetAttributeInputMetadata(DistributedExecution *execution, ShardCommandExecution *shardCommandExecution); -static ExecutionParams * -GetExecutionParams(RowModifyLevel modLevel, List *taskList, - TupleDestination *tupleDest, - bool expectResults, - ParamListInfo paramListInfo); +static ExecutionParams * GetExecutionParams(RowModifyLevel modLevel, List *taskList, + TupleDestination *tupleDest, + bool expectResults, + ParamListInfo paramListInfo); /* @@ -1019,59 +1018,60 @@ ExecuteTaskListOutsideTransaction(RowModifyLevel modLevel, List *taskList, } - /* * Prepare execution parameters for a task list.It is used by the * functions that execute task lists. -*/ + */ static ExecutionParams * GetExecutionParams(RowModifyLevel modLevel, List *taskList, - TupleDestination *tupleDest, - bool expectResults, - ParamListInfo paramListInfo) + TupleDestination *tupleDest, + bool expectResults, + ParamListInfo paramListInfo) { - int targetPoolSize = MaxAdaptiveExecutorPoolSize; - bool localExecutionSupported = true; - ExecutionParams *executionParams = CreateBasicExecutionParams( - modLevel, taskList, targetPoolSize, localExecutionSupported - ); + int targetPoolSize = MaxAdaptiveExecutorPoolSize; + bool localExecutionSupported = true; + ExecutionParams *executionParams = CreateBasicExecutionParams( + modLevel, taskList, targetPoolSize, localExecutionSupported + ); - executionParams->xactProperties = DecideTransactionPropertiesForTaskList( - modLevel, taskList, false); - executionParams->expectResults = expectResults; - executionParams->tupleDestination = tupleDest; - executionParams->paramListInfo = paramListInfo; + executionParams->xactProperties = DecideTransactionPropertiesForTaskList( + modLevel, taskList, false); + executionParams->expectResults = expectResults; + executionParams->tupleDestination = tupleDest; + executionParams->paramListInfo = paramListInfo; - return executionParams; + return executionParams; } + /* * ExecuteTaskListIntoTupleDestWithParam is a proxy to ExecuteTaskListExtended() which uses * bind params from executor state, and with defaults for some of the arguments. */ uint64 ExecuteTaskListIntoTupleDestWithParam(RowModifyLevel modLevel, List *taskList, - TupleDestination *tupleDest, - bool expectResults, - ParamListInfo paramListInfo) + TupleDestination *tupleDest, + bool expectResults, + ParamListInfo paramListInfo) { ExecutionParams *executionParams = GetExecutionParams(modLevel, taskList, tupleDest, - expectResults, paramListInfo); - return ExecuteTaskListExtended(executionParams); + expectResults, paramListInfo); + return ExecuteTaskListExtended(executionParams); } + /* * ExecuteTaskListIntoTupleDest is a proxy to ExecuteTaskListExtended() with defaults * for some of the arguments. */ uint64 ExecuteTaskListIntoTupleDest(RowModifyLevel modLevel, List *taskList, - TupleDestination *tupleDest, - bool expectResults) + TupleDestination *tupleDest, + bool expectResults) { - ExecutionParams *executionParams = GetExecutionParams(modLevel, taskList, tupleDest, - expectResults, NULL); - return ExecuteTaskListExtended(executionParams); + ExecutionParams *executionParams = GetExecutionParams(modLevel, taskList, tupleDest, + expectResults, NULL); + return ExecuteTaskListExtended(executionParams); }