Refactoring lock.c - Mailing list pgsql-patches

From Heikki Linnakangas
Subject Refactoring lock.c
Date
Msg-id Pine.OSF.4.61.0502022057370.463931@kosh.hut.fi
Whole thread Raw
Responses Re: Refactoring lock.c
Re: Refactoring lock.c
List pgsql-patches
Hi,

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.

This is preparation for the two-phase commit patch, since that introduces
more calls to UnGrantLock.

- Heikki

Attachment

pgsql-patches by date:

Previous
From: Neil Conway
Date:
Subject: Re: patch for temporary view from TODO list
Next
From: Neil Conway
Date:
Subject: Re: Refactoring lock.c