7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.6 1996/12/31 06:47:30 vadim Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.7 1997/01/14 05:40:45 vadim Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -1227,33 +1227,29 @@ BufferGetBlock(Buffer buffer)
1227
1227
}
1228
1228
1229
1229
/* ---------------------------------------------------------------------
1230
- * ReleaseTmpRelBuffers
1230
+ * ReleaseRelationBuffers
1231
1231
*
1232
- * this function unmarks all the dirty pages of a temporary
1233
- * relation in the buffer pool so that at the end of transaction
1232
+ * this function unmarks all the dirty pages of a relation
1233
+ * in the buffer pool so that at the end of transaction
1234
1234
* these pages will not be flushed.
1235
1235
* XXX currently it sequentially searches the buffer pool, should be
1236
1236
* changed to more clever ways of searching.
1237
1237
* --------------------------------------------------------------------
1238
1238
*/
1239
1239
void
1240
- ReleaseTmpRelBuffers (Relation tempreldesc )
1240
+ ReleaseRelationBuffers (Relation rdesc )
1241
1241
{
1242
1242
register int i ;
1243
1243
int holding = 0 ;
1244
1244
BufferDesc * buf ;
1245
1245
1246
- /*
1247
- * Is tempreldesc->rd_islocal == FALSE possible at all ?
1248
- * But I don't want to mess something now. - vadim 12/31/96
1249
- */
1250
- if ( tempreldesc -> rd_islocal )
1246
+ if ( rdesc -> rd_islocal )
1251
1247
{
1252
1248
for (i = 0 ; i < NLocBuffer ; i ++ )
1253
1249
{
1254
1250
buf = & LocalBufferDescriptors [i ];
1255
1251
if ((buf -> flags & BM_DIRTY ) &&
1256
- (buf -> tag .relId .relId == tempreldesc -> rd_id ))
1252
+ (buf -> tag .relId .relId == rdesc -> rd_id ))
1257
1253
{
1258
1254
buf -> flags &= ~BM_DIRTY ;
1259
1255
}
@@ -1269,7 +1265,7 @@ ReleaseTmpRelBuffers(Relation tempreldesc)
1269
1265
}
1270
1266
if ((buf -> flags & BM_DIRTY ) &&
1271
1267
(buf -> tag .relId .dbId == MyDatabaseId ) &&
1272
- (buf -> tag .relId .relId == tempreldesc -> rd_id )) {
1268
+ (buf -> tag .relId .relId == rdesc -> rd_id )) {
1273
1269
buf -> flags &= ~BM_DIRTY ;
1274
1270
if (!(buf -> flags & BM_FREE )) {
1275
1271
SpinRelease (BufMgrLock );
0 commit comments