Re: Minor fix in lwlock.c

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: Minor fix in lwlock.c
Дата
Msg-id d353gf$2ao4$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
> I don't see any reason to think we'd be unable to recover normally from
such a
> bug --- do you?
>

I guess the problem is here:

 /*
  * Fix the process wait semaphore's count for any absorbed wakeups.
  */
 while (extraWaits-- > 0)
  PGSemaphoreUnlock(&proc->sem);

elog(ERROR) won't recover semaphore count.




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

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