diff options
author | Robert Haas | 2015-10-22 14:49:20 +0000 |
---|---|---|
committer | Robert Haas | 2015-10-22 14:49:20 +0000 |
commit | bde39eed0cafb82bc94c40e95d96b5cf47b6f719 (patch) | |
tree | f7953cad3331f41078886d4811b2efec02a4d0d8 /src/backend/executor/execProcnode.c | |
parent | 1a219fa15bf802d69621e71c43d1a09515bcdc50 (diff) |
Fix a couple of bugs in recent parallelism-related commits.
Commit 816e336f12ecabdc834d4cc31bcf966b2dd323dc added the wrong error
check to async.c; sending restrictions is restricted to the leader,
not altogether unsafe.
Commit 3bd909b220930f21d6e15833a17947be749e7fde added ExecShutdownNode
to traverse the planstate tree and call shutdown functions, but made
a Gather node, the only node that actually has such a function, abort
the tree traversal, which is wrong.
Diffstat (limited to 'src/backend/executor/execProcnode.c')
-rw-r--r-- | src/backend/executor/execProcnode.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/backend/executor/execProcnode.c b/src/backend/executor/execProcnode.c index 5bc1d489421..6f5c5545c92 100644 --- a/src/backend/executor/execProcnode.c +++ b/src/backend/executor/execProcnode.c @@ -804,10 +804,7 @@ ExecShutdownNode(PlanState *node) switch (nodeTag(node)) { case T_GatherState: - { - ExecShutdownGather((GatherState *) node); - return true; - } + ExecShutdownGather((GatherState *) node); break; default: break; |