On Tue, Jan 11, 2011 at 7:24 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>> No, do this at top
>> if (walsnd->state == state)
>> Keep spinlocks when actually setting it.
I think this is safe...
> Aha. Thanks for the pointers, pfa a new version.
...but I think you also need to take the spinlock when reading the value.
The Enterprise PostgreSQL Company
In response to
pgsql-hackers by date
|Next:||From: Robert Haas||Date: 2011-01-12 02:06:09|
|Subject: Re: arrays as pl/perl input arguments [PATCH]|
|Previous:||From: Cédric Villemain||Date: 2011-01-12 02:00:12|
|Subject: Re: Allowing multiple concurrent base backups|