]> granicus.if.org Git - postgresql/commitdiff
Fix rebasing mistake in nodeGather.c
authorRobert Haas <rhaas@postgresql.org>
Mon, 9 Nov 2015 15:49:24 +0000 (10:49 -0500)
committerRobert Haas <rhaas@postgresql.org>
Mon, 9 Nov 2015 15:49:24 +0000 (10:49 -0500)
The patches committed as 6e71dd7ce9766582da453f493bc371d64977282f
and 3a1f8611f2582df0a16bcd35caed2e1526387643 were developed in
parallel but dependent on each other in a way that I failed to
notice.

This patch to fix the problem was prepared by Amit Kapila.

src/backend/executor/nodeGather.c

index 850c67e022a2865fc456bbe8fca03a9cd7de929e..513940477c02b77eb2a502d25e137d414dd6d31a 100644 (file)
@@ -341,7 +341,7 @@ gather_readnext(GatherState *gatherstate)
                        --gatherstate->nreaders;
                        if (gatherstate->nreaders == 0)
                        {
-                               ExecShutdownGather(gatherstate);
+                               ExecShutdownGatherWorkers(gatherstate);
                                return NULL;
                        }
                        else