Re: Refactoring lock.c - Mailing list pgsql-patches

From Neil Conway
Subject Re: Refactoring lock.c
Date
Msg-id 1107388808.26960.31.camel@localhost.localdomain
Whole thread Raw
In response to Refactoring lock.c  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: Refactoring lock.c  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-patches
On Wed, 2005-02-02 at 21:41 +0200, Heikki Linnakangas wrote:
> There's two almost identical pieces of code in LockRelease and
> LockReleaseAll that do the opposite of GrantLock.
>
> Here's a small patch that replaces those pieces with a static UnGrantLock
> function.

LockReleaseAll() did not update the holdMask bits for a released
proclock, but it will do so now. That's okay because we're removing the
proclock, right?

Barring any objections, I'll apply this to HEAD today or tomorrow.

-Neil



pgsql-patches by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Refactoring lock.c
Next
From: Mark Kirkwood
Date:
Subject: [Fwd: Re: [DOCS] Instructions for FreeBSD ipc config showing age]