Re: elog during holding a spinlock is safe?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: elog during holding a spinlock is safe?
Дата
Msg-id 24088.1284518830@sss.pgh.pa.us
обсуждение исходный текст
Ответ на elog during holding a spinlock is safe?  (Fujii Masao <masao.fujii@gmail.com>)
Ответы Re: elog during holding a spinlock is safe?  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-hackers
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?
        regards, tom lane


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

Предыдущее
От: Itagaki Takahiro
Дата:
Сообщение: Basic JSON support
Следующее
От: Robert Haas
Дата:
Сообщение: Re: knngist - 0.8