Re: Minor fix in lwlock.c

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: Minor fix in lwlock.c
Дата
Msg-id d354v5$2gju$1@news.hub.org
обсуждение исходный текст
Ответ на Minor fix in lwlock.c  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
Ответы Re: Minor fix in lwlock.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
"Tom Lane" <tgl@sss.pgh.pa.us> writes>
> The alternative would be to move the Unlock loop in front of the
> addition of the LWLock to held_lwlocks[], but I think that cure
> is probably worse than the disease --- the chance of an error during
> Unlock seems nonzero.
>

Another alternative might use PG_TRY/PG_CATCH to make sure that the
semaphore is released. But seems this costs too much ...

Regards,
Qingqing



В списке pgsql-patches по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Minor fix in lwlock.c
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Minor fix in lwlock.c