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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy