]> granicus.if.org Git - postgresql/commitdiff
Fix #ifdeffed debugging code to work with relation forks.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 27 Nov 2008 07:38:01 +0000 (07:38 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 27 Nov 2008 07:38:01 +0000 (07:38 +0000)
src/backend/storage/buffer/localbuf.c

index 0bc71554634d4576f996e7bbd87888c357560be4..6833837fe4a8603b9406d216f537fc4316c4e705 100644 (file)
@@ -9,7 +9,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/storage/buffer/localbuf.c,v 1.83 2008/11/11 14:17:02 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/storage/buffer/localbuf.c,v 1.84 2008/11/27 07:38:01 heikki Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -88,8 +88,8 @@ LocalBufferAlloc(SMgrRelation smgr, ForkNumber forkNum, BlockNumber blockNum,
                bufHdr = &LocalBufferDescriptors[b];
                Assert(BUFFERTAGS_EQUAL(bufHdr->tag, newTag));
 #ifdef LBDEBUG
-               fprintf(stderr, "LB ALLOC (%u,%d) %d\n",
-                               smgr->smgr_rnode.relNode, blockNum, -b - 1);
+               fprintf(stderr, "LB ALLOC (%u,%d,%d) %d\n",
+                               smgr->smgr_rnode.relNode, forkNum, blockNum, -b - 1);
 #endif
                /* this part is equivalent to PinBuffer for a shared buffer */
                if (LocalRefCount[b] == 0)
@@ -111,8 +111,8 @@ LocalBufferAlloc(SMgrRelation smgr, ForkNumber forkNum, BlockNumber blockNum,
        }
 
 #ifdef LBDEBUG
-       fprintf(stderr, "LB ALLOC (%u,%d) %d\n",
-                       RelationGetRelid(reln), blockNum, -nextFreeLocalBuf - 1);
+       fprintf(stderr, "LB ALLOC (%u,%d,%d) %d\n",
+               smgr->smgr_rnode.relNode, forkNum, blockNum, -nextFreeLocalBuf - 1);
 #endif
 
        /*