77 *
88 *
99 * 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 $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
@@ -1227,33 +1227,29 @@ BufferGetBlock(Buffer buffer)
12271227}
12281228
12291229/* ---------------------------------------------------------------------
1230- *ReleaseTmpRelBuffers
1230+ *ReleaseRelationBuffers
12311231 *
1232- * this function unmarks all the dirty pages of atemporary
1233- * relation in the buffer pool so that at the end of transaction
1232+ * this function unmarks all the dirty pages of arelation
1233+ * in the buffer pool so that at the end of transaction
12341234 * these pages will not be flushed.
12351235 * XXX currently it sequentially searches the buffer pool, should be
12361236 * changed to more clever ways of searching.
12371237 * --------------------------------------------------------------------
12381238 */
12391239void
1240- ReleaseTmpRelBuffers (Relation tempreldesc )
1240+ ReleaseRelationBuffers (Relation rdesc )
12411241{
12421242 registerint i ;
12431243int holding = 0 ;
12441244BufferDesc * buf ;
12451245
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 )
12511247 {
12521248for (i = 0 ;i < NLocBuffer ;i ++ )
12531249 {
12541250buf = & LocalBufferDescriptors [i ];
12551251if ((buf -> flags & BM_DIRTY )&&
1256- (buf -> tag .relId .relId == tempreldesc -> rd_id ))
1252+ (buf -> tag .relId .relId == rdesc -> rd_id ))
12571253 {
12581254buf -> flags &= ~BM_DIRTY ;
12591255 }
@@ -1269,7 +1265,7 @@ ReleaseTmpRelBuffers(Relation tempreldesc)
12691265}
12701266if ((buf -> flags & BM_DIRTY )&&
12711267 (buf -> tag .relId .dbId == MyDatabaseId )&&
1272- (buf -> tag .relId .relId == tempreldesc -> rd_id )) {
1268+ (buf -> tag .relId .relId == rdesc -> rd_id )) {
12731269buf -> flags &= ~BM_DIRTY ;
12741270if (!(buf -> flags & BM_FREE )) {
12751271SpinRelease (BufMgrLock );