Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2bdfcb5

Browse files
committed
Fix TupleQueueReaderNext not to ignore its nowait argument.
This was a silly goof on my (rhaas's) part. Report and fix by Rushabh Lathia.
1 parent 4496226 commit 2bdfcb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/executor/tqueue.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ TupleQueueReaderNext(TupleQueueReader *reader, bool nowait, bool *done)
535535
void *data;
536536

537537
/* Attempt to read a message. */
538-
result = shm_mq_receive(reader->queue, &nbytes, &data, true);
538+
result = shm_mq_receive(reader->queue, &nbytes, &data, nowait);
539539

540540
/* If queue is detached, set *done and return NULL. */
541541
if (result == SHM_MQ_DETACHED)

0 commit comments

Comments
 (0)