File tree Expand file tree Collapse file tree 3 files changed +4
-20
lines changed Expand file tree Collapse file tree 3 files changed +4
-20
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.122 2002/03/06 06:10:02 momjian Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.123 2002/04/15 23:47:12 momjian Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -1026,7 +1026,7 @@ BufmgrCommit(void)
1026
1026
BlockNumber
1027
1027
BufferGetBlockNumber (Buffer buffer )
1028
1028
{
1029
- Assert (BufferIsValid (buffer ));
1029
+ Assert (BufferIsPinned (buffer ));
1030
1030
1031
1031
if (BufferIsLocal (buffer ))
1032
1032
return LocalBufferDescriptors [- buffer - 1 ].tag .blockNum ;
Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $Id: buf.h,v 1.12 2001/11/05 17:46:35 momjian Exp $
10
+ * $Id: buf.h,v 1.13 2002/04/15 23:47:12 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -36,12 +36,4 @@ typedef int Buffer;
36
36
*/
37
37
#define BufferIsLocal (buffer ) ((buffer) < 0)
38
38
39
- /*
40
- * If NO_BUFFERISVALID is defined, all error checking using BufferIsValid()
41
- * are suppressed. Decision-making using BufferIsValid is not affected.
42
- * This should be set only if one is sure there will be no errors.
43
- * - plai 9/10/90
44
- */
45
- #undef NO_BUFFERISVALID
46
-
47
39
#endif /* BUF_H */
Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $Id: bufmgr.h,v 1.57 2001/11/10 23:51:14 tgl Exp $
10
+ * $Id: bufmgr.h,v 1.58 2002/04/15 23:47:12 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -44,13 +44,6 @@ extern long *LocalRefCount;
44
44
#define BUFFER_LOCK_SHARE 1
45
45
#define BUFFER_LOCK_EXCLUSIVE 2
46
46
47
-
48
- /**********************************************************************
49
-
50
- the rest is function defns in the bufmgr that are externally callable
51
-
52
- **********************************************************************/
53
-
54
47
/*
55
48
* These routines are beaten on quite heavily, hence the macroization.
56
49
*/
@@ -150,7 +143,6 @@ extern long *LocalRefCount;
150
143
BufferBlockPointers[(buffer) - 1] \
151
144
)
152
145
153
-
154
146
/*
155
147
* prototypes for functions in bufmgr.c
156
148
*/
You can’t perform that action at this time.
0 commit comments