Skip to content

Commit 58bece7

Browse files
committed
Fix #ifdeffed debugging code to work with relation forks.
1 parent e309739 commit 58bece7

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
#ifdef LBDEBUG
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
#ifdef LBDEBUG
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy