MCPcopy Create free account
hub / github.com/pingcap/tidb / notifyWorker

Method notifyWorker

pkg/executor/parallel_apply.go:199–203  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
199func (e *ParallelNestedLoopApplyExec) notifyWorker(ctx context.Context) {
200 defer e.handleWorkerPanic(ctx, &e.notifyWg)
201 e.workerWg.Wait()
202 e.putResult(nil, nil)
203}
204
205func (e *ParallelNestedLoopApplyExec) outerWorker(ctx context.Context) {
206 defer trace.StartRegion(ctx, "ParallelApplyOuterWorker").End()

Callers 1

NextMethod · 0.95

Calls 3

handleWorkerPanicMethod · 0.95
putResultMethod · 0.95
WaitMethod · 0.65

Tested by

no test coverage detected