Fix TupleQueueReaderNext not to ignore its nowait argument.

This was a silly goof on my (rhaas's) part.

Report and fix by Rushabh Lathia.
This commit is contained in:
Robert Haas 2015-12-18 12:37:43 -05:00
parent 4496226782
commit 2bdfcb52c5
1 changed files with 1 additions and 1 deletions

View 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)