Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2ca05fe

Browse files
committed
ReleaseTmpRelBuffers is ReleaseRelationBuffers now.
1 parent791e997 commit2ca05fe

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

‎src/backend/storage/buffer/bufmgr.c

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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-
* relationin 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
*/
12391239
void
1240-
ReleaseTmpRelBuffers(Relationtempreldesc)
1240+
ReleaseRelationBuffers(Relationrdesc)
12411241
{
12421242
registerinti;
12431243
intholding=0;
12441244
BufferDesc*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
{
12521248
for (i=0;i<NLocBuffer;i++)
12531249
{
12541250
buf=&LocalBufferDescriptors[i];
12551251
if ((buf->flags&BM_DIRTY)&&
1256-
(buf->tag.relId.relId==tempreldesc->rd_id))
1252+
(buf->tag.relId.relId==rdesc->rd_id))
12571253
{
12581254
buf->flags &= ~BM_DIRTY;
12591255
}
@@ -1269,7 +1265,7 @@ ReleaseTmpRelBuffers(Relation tempreldesc)
12691265
}
12701266
if ((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)) {
12731269
buf->flags &= ~BM_DIRTY;
12741270
if (!(buf->flags&BM_FREE)) {
12751271
SpinRelease(BufMgrLock);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp