Re: lwlocks and starvation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: lwlocks and starvation
Дата
Msg-id 9843.1101313152@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: lwlocks and starvation  (Neil Conway <neilc@samurai.com>)
Ответы Re: lwlocks and starvation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Neil Conway <neilc@samurai.com> writes:
> AFAICS, that is not the case. See lwlock.c, circa line 264: in LW_SHARED 
> mode, we check if "exclusive" is zero; if so, we acquire the lock 
> (increment the shared lock count and do not block). And "exclusive" is 
> set non-zero only when we _acquire_ a lock in exclusive mode, not when 
> we add an exclusive waiter to the wait queue.

Ooh, you are right.  I think that may qualify as a bug ...
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: lwlocks and starvation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: lwlocks and starvation