On Mon, Feb 15, 2021 at 9:27 PM Michael Paquier <mich...@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()?