mirror of https://github.com/citusdata/citus.git
Use EnsureCompatibleLocalExecutionState instead (#5640)
parent
a2b05f0d28
commit
4dc38e9e3d
|
@ -1028,12 +1028,7 @@ ExecuteTaskListExtended(ExecutionParams *executionParams)
|
|||
* then we should error out as it would cause inconsistencies across the
|
||||
* remote connection and local execution.
|
||||
*/
|
||||
List *remoteTaskList = execution->remoteTaskList;
|
||||
if (GetCurrentLocalExecutionStatus() == LOCAL_EXECUTION_REQUIRED &&
|
||||
AnyTaskAccessesLocalNode(remoteTaskList))
|
||||
{
|
||||
ErrorIfTransactionAccessedPlacementsLocally();
|
||||
}
|
||||
EnsureCompatibleLocalExecutionState(execution->remoteTaskList);
|
||||
|
||||
/* run the remote execution */
|
||||
StartDistributedExecution(execution);
|
||||
|
|
|
@ -50,7 +50,6 @@ static void TraverseJobTree(Job *curJob, List **jobs);
|
|||
static char * GenerateCreateSchemasCommand(List *jobIds, char *schemaOwner);
|
||||
static char * GenerateJobCommands(List *jobIds, char *templateCommand);
|
||||
static char * GenerateDeleteJobsCommand(List *jobIds);
|
||||
static void EnsureCompatibleLocalExecutionState(List *taskList);
|
||||
|
||||
|
||||
/*
|
||||
|
@ -79,7 +78,7 @@ ExecuteDependentTasks(List *topLevelTasks, Job *topLevelJob)
|
|||
* EnsureCompatibleLocalExecutionState makes sure that the tasks won't have
|
||||
* any visibility problems because of local execution.
|
||||
*/
|
||||
static void
|
||||
void
|
||||
EnsureCompatibleLocalExecutionState(List *taskList)
|
||||
{
|
||||
/*
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include "nodes/pg_list.h"
|
||||
|
||||
extern List * ExecuteDependentTasks(List *taskList, Job *topLevelJob);
|
||||
extern void EnsureCompatibleLocalExecutionState(List *taskList);
|
||||
extern void DoRepartitionCleanup(List *jobIds);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue