| 417 | } |
| 418 | |
| 419 | static void _ExecutionPlanInit(OpBase *root) { |
| 420 | // If the ExecutionPlan associated with this op hasn't built a record pool yet, do so now. |
| 421 | _ExecutionPlan_InitRecordPool((ExecutionPlan *)root->plan); |
| 422 | |
| 423 | // Initialize the operation if necessary. |
| 424 | if(root->init) root->init(root); |
| 425 | |
| 426 | // Continue initializing downstream operations. |
| 427 | for(int i = 0; i < root->childCount; i++) { |
| 428 | _ExecutionPlanInit(root->children[i]); |
| 429 | } |
| 430 | } |
| 431 | |
| 432 | void ExecutionPlan_Init(ExecutionPlan *plan) { |
| 433 | _ExecutionPlanInit(plan->root); |
no test coverage detected