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

Function ExecCustomScanInitializeDSM

src/backend/executor/nodeCustom.c:174–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174void
175ExecCustomScanInitializeDSM(CustomScanState *node, ParallelContext *pcxt)
176{
177 const CustomExecMethods *methods = node->methods;
178
179 if (methods->InitializeDSMCustomScan)
180 {
181 int plan_node_id = node->ss.ps.plan->plan_node_id;
182 void *coordinate;
183
184 coordinate = shm_toc_allocate(pcxt->toc, node->pscan_len);
185 methods->InitializeDSMCustomScan(node, pcxt, coordinate);
186 shm_toc_insert(pcxt->toc, plan_node_id, coordinate);
187 }
188}
189
190void
191ExecCustomScanReInitializeDSM(CustomScanState *node, ParallelContext *pcxt)

Callers 1

Calls 2

shm_toc_allocateFunction · 0.85
shm_toc_insertFunction · 0.85

Tested by

no test coverage detected