File tree 6 files changed +156
-243
lines changed 6 files changed +156
-243
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/buf_init.c,v 1.35 2000/05/31 00:28:26 petere Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.36 2000/10/18 05:50:15 vadim Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -67,8 +67,9 @@ long *PrivateRefCount; /* also used in freelist.c */
67
67
bits8 * BufferLocks ; /* flag bits showing locks I have set */
68
68
BufferTag * BufferTagLastDirtied ; /* tag buffer had when last
69
69
* dirtied by me */
70
- BufferBlindId * BufferBlindLastDirtied ; /* and its BlindId too */
71
- bool * BufferDirtiedByMe ; /* T if buf has been dirtied in cur xact */
70
+ BufferBlindId * BufferBlindLastDirtied ;
71
+ LockRelId * BufferRelidLastDirtied ;
72
+ bool * BufferDirtiedByMe ; /* T if buf has been dirtied in cur xact */
72
73
73
74
74
75
/*
@@ -251,6 +252,7 @@ InitBufferPool(IPCKey key)
251
252
BufferLocks = (bits8 * ) calloc (NBuffers , sizeof (bits8 ));
252
253
BufferTagLastDirtied = (BufferTag * ) calloc (NBuffers , sizeof (BufferTag ));
253
254
BufferBlindLastDirtied = (BufferBlindId * ) calloc (NBuffers , sizeof (BufferBlindId ));
255
+ BufferRelidLastDirtied = (LockRelId * ) calloc (NBuffers , sizeof (LockRelId ));
254
256
BufferDirtiedByMe = (bool * ) calloc (NBuffers , sizeof (bool ));
255
257
}
256
258
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/buf_table.c,v 1.17 2000/05/19 03:22:28 tgl Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.18 2000/10/18 05:50:15 vadim Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -125,8 +125,8 @@ BufTableDelete(BufferDesc *buf)
125
125
* sequential searches through the buffer table won't think the
126
126
* buffer is still valid for its old page.
127
127
*/
128
- buf -> tag .relId . relId = InvalidOid ;
129
- buf -> tag .relId . dbId = InvalidOid ;
128
+ buf -> tag .rnode . relNode = InvalidOid ;
129
+ buf -> tag .rnode . tblNode = InvalidOid ;
130
130
131
131
return TRUE;
132
132
}
You can’t perform that action at this time.
0 commit comments