aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execParallel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/executor/execParallel.c')
-rw-r--r--src/backend/executor/execParallel.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/backend/executor/execParallel.c b/src/backend/executor/execParallel.c
index 7d8bd01994f..0fdbd119d9b 100644
--- a/src/backend/executor/execParallel.c
+++ b/src/backend/executor/execParallel.c
@@ -1043,13 +1043,12 @@ ExecParallelRetrieveJitInstrumentation(PlanState *planstate,
/*
* Accumulate worker JIT instrumentation into the combined JIT
- * instrumentation, allocating it if required. Note this is kept separate
- * from the leader's own instrumentation.
+ * instrumentation, allocating it if required.
*/
- if (!planstate->state->es_jit_combined_instr)
- planstate->state->es_jit_combined_instr =
+ if (!planstate->state->es_jit_worker_instr)
+ planstate->state->es_jit_worker_instr =
MemoryContextAllocZero(planstate->state->es_query_cxt, sizeof(JitInstrumentation));
- combined = planstate->state->es_jit_combined_instr;
+ combined = planstate->state->es_jit_worker_instr;
/* Accummulate all the workers' instrumentations. */
for (n = 0; n < shared_jit->num_workers; ++n)