Bug in TupleQueueReaderNext() ?

Поиск
Список
Период
Сортировка
Искать

Bug in TupleQueueReaderNext() ?

От:
Rushabh Lathia <rushabh.lathia@gmail.com>
Дата:
Вложения:
Hi All,

TupleQueueReaderNext() always pass true for the nowait into
shm_mq_receive() call. I think here it need to pass the nowait
which is passed by the caller of TupleQueueReaderNext.

This is usefull if the caller want TupleQueueReaderNext() to wait
until it gets the tuple from the particular queue.

PFA to fix the same.

Regards,
Rushabh Lathia

Re: Bug in TupleQueueReaderNext() ?

От:
Robert Haas <robertmhaas@gmail.com>
Дата:
On Wed, Dec 16, 2015 at 1:09 AM, Rushabh Lathia
 wrote:
> TupleQueueReaderNext() always pass true for the nowait into
> shm_mq_receive() call. I think here it need to pass the nowait
> which is passed by the caller of TupleQueueReaderNext.
>
> This is usefull if the caller want TupleQueueReaderNext() to wait
> until it gets the tuple from the particular queue.

Boy, that's an embarassing mistake.  *blushes*

Thanks for the report and fix.  Committed.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


FAQ