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

Commitae753b8

Browse files
committed
ReleaseTmpRelBuffers () releases buffers in LOCAL buffer pool now
(if rd_islocal is true).
1 parent9b94bce commitae753b8

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

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

Lines changed: 19 additions & 1 deletion
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.5 1996/11/08 05:58:11 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.6 1996/12/31 06:47:30 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1243,6 +1243,24 @@ ReleaseTmpRelBuffers(Relation tempreldesc)
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 )
1251+
{
1252+
for (i=0;i<NLocBuffer;i++)
1253+
{
1254+
buf=&LocalBufferDescriptors[i];
1255+
if ((buf->flags&BM_DIRTY)&&
1256+
(buf->tag.relId.relId==tempreldesc->rd_id))
1257+
{
1258+
buf->flags &= ~BM_DIRTY;
1259+
}
1260+
}
1261+
return;
1262+
}
1263+
12461264
for (i=1;i<=NBuffers;i++) {
12471265
buf=&BufferDescriptors[i-1];
12481266
if (!holding) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp