Re: ERROR: invalid spinlock number: 0

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: ERROR: invalid spinlock number: 0
Дата
Msg-id CA+hUKG+tZHpADD_BsPp=c3EiYeenTTx5AxsZVGkv1mA0J3O21w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: ERROR: invalid spinlock number: 0  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: ERROR: invalid spinlock number: 0
Список pgsql-hackers
On Mon, Feb 15, 2021 at 9:27 PM Michael Paquier <michael@paquier.xyz> wrote:
> On Thu, Feb 11, 2021 at 11:30:13PM +0900, Fujii Masao wrote:
> > Yes, so what about the attached patch?
>
> I see.  So the first error triggering the spinlock error would cause
> a transaction failure because the fallback implementation of atomics
> uses a spinlock for this variable, and it may not initialized in this
> code path.

Why not initialise it in WalRcvShmemInit()?



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

Предыдущее
От: Zohar Gofer
Дата:
Сообщение: pg_replication_origin_session_setup and superuser
Следующее
От: Noah Misch
Дата:
Сообщение: Re: increase size of pg_commit_ts buffers