Re: elog during holding a spinlock is safe?

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: elog during holding a spinlock is safe?
Дата
Msg-id 4C906CE4.9010609@enterprisedb.com
обсуждение исходный текст
Ответ на Re: elog during holding a spinlock is safe?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 15/09/10 05:47, Tom Lane wrote:
> Fujii Masao<masao.fujii@gmail.com>  writes:
>> In HEAD, OwnLatch can elog during holding the spinlock WalSnd->mutex.
>> This seems to be unsafe
>
> Even if it were safe, holding a spinlock through non-straight-line code
> is a complete violation of the spinlock coding rules re the length of
> time you're supposed to hold the lock.  Heikki?

Yep, that's an oversight. I'll move the OwnLatch call after the spinlock 
is released.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Latches, loop and exit
Следующее
От: Markus Wanner
Дата:
Сообщение: Re: bg worker: patch 1 of 6 - permanent process