MCPcopy Create free account
hub / github.com/apache/cloudberry / ExecCustomScanInitializeWorker

Function ExecCustomScanInitializeWorker

src/backend/executor/nodeCustom.c:205–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void
206ExecCustomScanInitializeWorker(CustomScanState *node,
207 ParallelWorkerContext *pwcxt)
208{
209 const CustomExecMethods *methods = node->methods;
210
211 if (methods->InitializeWorkerCustomScan)
212 {
213 int plan_node_id = node->ss.ps.plan->plan_node_id;
214 void *coordinate;
215
216 coordinate = shm_toc_lookup(pwcxt->toc, plan_node_id, false);
217 methods->InitializeWorkerCustomScan(node, pwcxt->toc, coordinate);
218 }
219}
220
221void
222ExecShutdownCustomScan(CustomScanState *node)

Callers 1

Calls 1

shm_toc_lookupFunction · 0.85

Tested by

no test coverage detected