1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

The patch I sent to -patches a little while ago wasn't applied: it

was in the thread "make BufferGetBlockNumber() a macro". Tom
objected to the original patch, so I prepared a new one which
doesn't change BufferGetBlockNumber() into a macro, it just
cleans up some comments and fixes an assertion. The patch
is attached.

Neil Conway
This commit is contained in:
Bruce Momjian
2002-04-15 23:47:12 +00:00
parent 33d1bb76c6
commit 171824087c
3 changed files with 4 additions and 20 deletions

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: bufmgr.h,v 1.57 2001/11/10 23:51:14 tgl Exp $
* $Id: bufmgr.h,v 1.58 2002/04/15 23:47:12 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -44,13 +44,6 @@ extern long *LocalRefCount;
#define BUFFER_LOCK_SHARE 1
#define BUFFER_LOCK_EXCLUSIVE 2
/**********************************************************************
the rest is function defns in the bufmgr that are externally callable
**********************************************************************/
/*
* These routines are beaten on quite heavily, hence the macroization.
*/
@@ -150,7 +143,6 @@ extern long *LocalRefCount;
BufferBlockPointers[(buffer) - 1] \
)
/*
* prototypes for functions in bufmgr.c
*/