notifyWorker waits for all inner/outer-workers finishing and then put an empty chunk into the resultCh to notify the upper executor there is no more data.
(ctx context.Context)
| 197 | // notifyWorker waits for all inner/outer-workers finishing and then put an empty |
| 198 | // chunk into the resultCh to notify the upper executor there is no more data. |
| 199 | func (e *ParallelNestedLoopApplyExec) notifyWorker(ctx context.Context) { |
| 200 | defer e.handleWorkerPanic(ctx, &e.notifyWg) |
| 201 | e.workerWg.Wait() |
| 202 | e.putResult(nil, nil) |
| 203 | } |
| 204 | |
| 205 | func (e *ParallelNestedLoopApplyExec) outerWorker(ctx context.Context) { |
| 206 | defer trace.StartRegion(ctx, "ParallelApplyOuterWorker").End() |
no test coverage detected