Skip to content

Commit

Permalink
bugfix: a dummy final XpuCommand didn't have XpuConnection, then it l…
Browse files Browse the repository at this point in the history
…eads SEGV.

issue reported at #718
  • Loading branch information
kaigai committed Jan 25, 2024
1 parent fd4ba98 commit 20b0ea7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/executor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,7 @@ pgstromExecFinalChunkDummy(pgstromTaskState *pts,
xcmd->magic = XpuCommandMagicNumber;
xcmd->tag = XpuCommandTag__Success;
xcmd->length = offsetof(XpuCommand, u.results.stats);
xcmd->priv = conn;
xcmd->u.results.final_plan_node = true;

/* attach dummy xcmd at the tail of ready list */
Expand Down

0 comments on commit 20b0ea7

Please sign in to comment.