mirror of https://github.com/citusdata/citus.git
pass CitusCustomState directly to adaptive executor (#3151)
parent
ffd89e4e01
commit
7c410e3cd7
|
@ -600,9 +600,8 @@ static TaskExecutionState TaskExecutionStateMachine(ShardCommandExecution *
|
|||
* of the input scanScate.
|
||||
*/
|
||||
TupleTableSlot *
|
||||
AdaptiveExecutor(CustomScanState *node)
|
||||
AdaptiveExecutor(CitusScanState *scanState)
|
||||
{
|
||||
CitusScanState *scanState = (CitusScanState *) node;
|
||||
TupleTableSlot *resultSlot = NULL;
|
||||
|
||||
DistributedPlan *distributedPlan = scanState->distributedPlan;
|
||||
|
|
|
@ -193,7 +193,7 @@ CitusExecScan(CustomScanState *node)
|
|||
|
||||
if (!scanState->finishedRemoteScan)
|
||||
{
|
||||
AdaptiveExecutor(node);
|
||||
AdaptiveExecutor(scanState);
|
||||
|
||||
scanState->finishedRemoteScan = true;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ extern int ExecutorSlowStartInterval;
|
|||
extern void CitusExecutorStart(QueryDesc *queryDesc, int eflags);
|
||||
extern void CitusExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count,
|
||||
bool execute_once);
|
||||
extern TupleTableSlot * AdaptiveExecutor(CustomScanState *node);
|
||||
extern TupleTableSlot * AdaptiveExecutor(CitusScanState *scanState);
|
||||
extern uint64 ExecuteTaskListExtended(RowModifyLevel modLevel, List *taskList,
|
||||
TupleDesc tupleDescriptor,
|
||||
Tuplestorestate *tupleStore,
|
||||
|
|
Loading…
Reference in New Issue