elog during holding a spinlock is safe?

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема elog during holding a spinlock is safe?
Дата
Msg-id AANLkTim7ewtxN6orG+8z5mHByyeKx7zvBvpJpUvv1zw+@mail.gmail.com
обсуждение исходный текст
Ответы Re: elog during holding a spinlock is safe?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

In HEAD, OwnLatch can elog during holding the spinlock WalSnd->mutex.
This seems to be unsafe because that elog would cause the walsender
to exit without releasing the spinlock. Because of the spinlock being
held, subsequent walsender would get stuck. I wonder if OwnLatch really
needs to be protected by the spinlock.

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Pseudoconstant quals versus the join removal patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Pseudoconstant quals versus the join removal patch