mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +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:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.122 2002/03/06 06:10:02 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.123 2002/04/15 23:47:12 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1026,7 +1026,7 @@ BufmgrCommit(void)
|
||||
BlockNumber
|
||||
BufferGetBlockNumber(Buffer buffer)
|
||||
{
|
||||
Assert(BufferIsValid(buffer));
|
||||
Assert(BufferIsPinned(buffer));
|
||||
|
||||
if (BufferIsLocal(buffer))
|
||||
return LocalBufferDescriptors[-buffer - 1].tag.blockNum;
|
||||
|
Reference in New Issue
Block a user