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

Commit58bece7

Browse files
committed
Fix #ifdeffed debugging code to work with relation forks.
1 parente309739 commit58bece7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/storage/buffer/localbuf.c,v 1.83 2008/11/11 14:17:02 tgl Exp $
12+
* $PostgreSQL: pgsql/src/backend/storage/buffer/localbuf.c,v 1.84 2008/11/27 07:38:01 heikki Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -88,8 +88,8 @@ LocalBufferAlloc(SMgrRelation smgr, ForkNumber forkNum, BlockNumber blockNum,
8888
bufHdr=&LocalBufferDescriptors[b];
8989
Assert(BUFFERTAGS_EQUAL(bufHdr->tag,newTag));
9090
#ifdefLBDEBUG
91-
fprintf(stderr,"LB ALLOC (%u,%d) %d\n",
92-
smgr->smgr_rnode.relNode,blockNum,-b-1);
91+
fprintf(stderr,"LB ALLOC (%u,%d,%d) %d\n",
92+
smgr->smgr_rnode.relNode,forkNum,blockNum,-b-1);
9393
#endif
9494
/* this part is equivalent to PinBuffer for a shared buffer */
9595
if (LocalRefCount[b]==0)
@@ -111,8 +111,8 @@ LocalBufferAlloc(SMgrRelation smgr, ForkNumber forkNum, BlockNumber blockNum,
111111
}
112112

113113
#ifdefLBDEBUG
114-
fprintf(stderr,"LB ALLOC (%u,%d) %d\n",
115-
RelationGetRelid(reln),blockNum,-nextFreeLocalBuf-1);
114+
fprintf(stderr,"LB ALLOC (%u,%d,%d) %d\n",
115+
smgr->smgr_rnode.relNode,forkNum,blockNum,-nextFreeLocalBuf-1);
116116
#endif
117117

118118
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp