Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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: UnGrantLock.patch
Description: text/plain (5.4 KB)

Responses

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group