]> granicus.if.org Git - postgresql/commitdiff
Fix TupleQueueReaderNext not to ignore its nowait argument.
authorRobert Haas <rhaas@postgresql.org>
Fri, 18 Dec 2015 17:37:43 +0000 (12:37 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 18 Dec 2015 17:37:43 +0000 (12:37 -0500)
This was a silly goof on my (rhaas's) part.

Report and fix by Rushabh Lathia.

src/backend/executor/tqueue.c

index d625b0d800ba50e34a79f941b56de58163ae5586..276956e3f148c57ceccc893cfda3e07997cf7195 100644 (file)
@@ -535,7 +535,7 @@ TupleQueueReaderNext(TupleQueueReader *reader, bool nowait, bool *done)
                void       *data;
 
                /* Attempt to read a message. */
-               result = shm_mq_receive(reader->queue, &nbytes, &data, true);
+               result = shm_mq_receive(reader->queue, &nbytes, &data, nowait);
 
                /* If queue is detached, set *done and return NULL. */
                if (result == SHM_MQ_DETACHED)