mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 14:52:08 +02:00
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:
parent
4496226782
commit
2bdfcb52c5
@ -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…
Reference in New Issue
Block a user