Fix TupleQueueReaderNext not to ignore its nowait argument.

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

Report and fix by Rushabh Lathia.
pull/14/head^2
Robert Haas 10 years ago
parent 4496226782
commit 2bdfcb52c5
  1. 2
      src/backend/executor/tqueue.c

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

Loading…
Cancel
Save