summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2016-11-11 00:13:52 +0000
committerTomas Vondra2016-11-11 00:13:52 +0000
commit5a3bca06056d41a32e12578d3ce4a25bdd42ba84 (patch)
treec953d24881d0dfc9a238438364d9f67173f8fbe0
parent0124efc3634c5789ee713e4ffef4f3ed95be79c4 (diff)
fix producerReceiveSlot() to return bool, as expected (was void before)
-rw-r--r--src/backend/executor/producerReceiver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/executor/producerReceiver.c b/src/backend/executor/producerReceiver.c
index b7a7033833..d3f3bc8968 100644
--- a/src/backend/executor/producerReceiver.c
+++ b/src/backend/executor/producerReceiver.c
@@ -72,7 +72,7 @@ producerStartupReceiver(DestReceiver *self, int operation, TupleDesc typeinfo)
/*
* Receive a tuple from the executor and dispatch it to the proper consumer
*/
-static void
+static bool
producerReceiveSlot(TupleTableSlot *slot, DestReceiver *self)
{
ProducerState *myState = (ProducerState *) self;
@@ -122,6 +122,8 @@ producerReceiveSlot(TupleTableSlot *slot, DestReceiver *self)
myState->othercount++;
}
}
+
+ return true;
}