Re: [9.4 bug] The database server hangs with write-heavy workload on Windows - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: [9.4 bug] The database server hangs with write-heavy workload on Windows
Date
Msg-id 544FE0A3.4010608@vmware.com
Whole thread Raw
In response to Re: [9.4 bug] The database server hangs with write-heavy workload on Windows  ("MauMau" <maumau307@gmail.com>)
List pgsql-hackers
On 10/14/2014 03:59 PM, MauMau wrote:
> BTW, in LWLockWaitForVar(), the first line of the following code fragment is
> not necessary, because lwWaitLink is set to head immediately.  I think it
> would be good to eliminate as much unnecessary code as possible from the
> spinlock section.
>
>    proc->lwWaitLink = NULL;
>
>    /* waiters are added to the front of the queue */
>    proc->lwWaitLink = lock->head;

Thanks, fixed!

- Heikki




pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: WIP: Access method extendability
Next
From: Alvaro Herrera
Date:
Subject: Re: alter user/role CURRENT_USER