Refactoring lock.c

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: pgsql-patches(at)postgresql(dot)org
Subject: Refactoring lock.c
Date: 2005-02-02 19:41:15
Message-ID: Pine.OSF.4.61.0502022057370.463931@kosh.hut.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
UnGrantLock.patch text/plain 5.4 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Martin Pitt 2005-02-02 20:42:28 Re: libpq API incompatibility between 7.4 and 8.0
Previous Message Peter Eisentraut 2005-02-02 19:32:11 Re: libpq API incompatibility between 7.4 and 8.0