]> granicus.if.org Git - postgresql/commitdiff
Fix assorted dtrace breakage caused by patch to include backend IDs
authorRobert Haas <rhaas@postgresql.org>
Fri, 13 Aug 2010 22:54:17 +0000 (22:54 +0000)
committerRobert Haas <rhaas@postgresql.org>
Fri, 13 Aug 2010 22:54:17 +0000 (22:54 +0000)
in temp relpaths.

Per buildfarm.

src/backend/storage/buffer/bufmgr.c
src/backend/utils/probes.d

index 4c09df1ba78d0d0657f9d098b390f07c34e088e3..7b3536335bea5a4787bb24ac34839cc637494b1b 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.257 2010/08/13 20:10:52 rhaas Exp $
+ *       $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.258 2010/08/13 22:54:17 rhaas Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -295,10 +295,10 @@ ReadBuffer_common(SMgrRelation smgr, bool isLocalBuf, ForkNumber forkNum,
        isExtend = (blockNum == P_NEW);
 
        TRACE_POSTGRESQL_BUFFER_READ_START(forkNum, blockNum,
-                                                                          smgr->smgr_rnode.spcNode,
-                                                                          smgr->smgr_rnode.dbNode,
-                                                                          smgr->smgr_rnode.relNode,
-                                                                          isLocalBuf,
+                                                                          smgr->smgr_rnode.node.spcNode,
+                                                                          smgr->smgr_rnode.node.dbNode,
+                                                                          smgr->smgr_rnode.node.relNode,
+                                                                          smgr->smgr_rnode.backend,
                                                                           isExtend);
 
        /* Substitute proper block number if caller asked for P_NEW */
@@ -340,10 +340,10 @@ ReadBuffer_common(SMgrRelation smgr, bool isLocalBuf, ForkNumber forkNum,
                                VacuumCostBalance += VacuumCostPageHit;
 
                        TRACE_POSTGRESQL_BUFFER_READ_DONE(forkNum, blockNum,
-                                                                                         smgr->smgr_rnode.spcNode,
-                                                                                         smgr->smgr_rnode.dbNode,
-                                                                                         smgr->smgr_rnode.relNode,
-                                                                                         isLocalBuf,
+                                                                                         smgr->smgr_rnode.node.spcNode,
+                                                                                         smgr->smgr_rnode.node.dbNode,
+                                                                                         smgr->smgr_rnode.node.relNode,
+                                                                                         smgr->smgr_rnode.backend,
                                                                                          isExtend,
                                                                                          found);
 
@@ -640,17 +640,17 @@ BufferAlloc(SMgrRelation smgr, ForkNumber forkNum,
 
                                /* OK, do the I/O */
                                TRACE_POSTGRESQL_BUFFER_WRITE_DIRTY_START(forkNum, blockNum,
-                                                                                                       smgr->smgr_rnode.spcNode,
-                                                                                                        smgr->smgr_rnode.dbNode,
-                                                                                                  smgr->smgr_rnode.relNode);
+                                                                                               smgr->smgr_rnode.node.spcNode,
+                                                                                                smgr->smgr_rnode.node.dbNode,
+                                                                                          smgr->smgr_rnode.node.relNode);
 
                                FlushBuffer(buf, NULL);
                                LWLockRelease(buf->content_lock);
 
                                TRACE_POSTGRESQL_BUFFER_WRITE_DIRTY_DONE(forkNum, blockNum,
-                                                                                                       smgr->smgr_rnode.spcNode,
-                                                                                                        smgr->smgr_rnode.dbNode,
-                                                                                                  smgr->smgr_rnode.relNode);
+                                                                                               smgr->smgr_rnode.node.spcNode,
+                                                                                                smgr->smgr_rnode.node.dbNode,
+                                                                                          smgr->smgr_rnode.node.relNode);
                        }
                        else
                        {
@@ -1850,9 +1850,10 @@ FlushBuffer(volatile BufferDesc *buf, SMgrRelation reln)
 
        TRACE_POSTGRESQL_BUFFER_FLUSH_START(buf->tag.forkNum,
                                                                                buf->tag.blockNum,
-                                                                               reln->smgr_rnode.spcNode,
-                                                                               reln->smgr_rnode.dbNode,
-                                                                               reln->smgr_rnode.relNode);
+                                                                               reln->smgr_rnode.node.spcNode,
+                                                                               reln->smgr_rnode.node.dbNode,
+                                                                               reln->smgr_rnode.node.relNode,
+                                                                               reln->smgr_rnode.backend);
 
        /*
         * Force XLOG flush up to buffer's LSN.  This implements the basic WAL
@@ -1889,9 +1890,10 @@ FlushBuffer(volatile BufferDesc *buf, SMgrRelation reln)
 
        TRACE_POSTGRESQL_BUFFER_FLUSH_DONE(buf->tag.forkNum,
                                                                           buf->tag.blockNum,
-                                                                          reln->smgr_rnode.spcNode,
-                                                                          reln->smgr_rnode.dbNode,
-                                                                          reln->smgr_rnode.relNode);
+                                                                          reln->smgr_rnode.node.spcNode,
+                                                                          reln->smgr_rnode.node.dbNode,
+                                                                          reln->smgr_rnode.node.relNode,
+                                                                          reln->smgr_rnode.backend);
 
        /* Pop the error context stack */
        error_context_stack = errcontext.previous;
index 2ea6b7798f2d48a8c327584ffa5050cf913e86c5..5158c0a06cf135c7afc41c825078f1b484fbdb8c 100644 (file)
@@ -3,7 +3,7 @@
  *
  *     Copyright (c) 2006-2010, PostgreSQL Global Development Group
  *
- *     $PostgreSQL: pgsql/src/backend/utils/probes.d,v 1.13 2010/08/13 20:10:52 rhaas Exp $
+ *     $PostgreSQL: pgsql/src/backend/utils/probes.d,v 1.14 2010/08/13 22:54:17 rhaas Exp $
  * ----------
  */
 
@@ -54,10 +54,10 @@ provider postgresql {
        probe sort__start(int, bool, int, int, bool);
        probe sort__done(bool, long);
 
-       probe buffer__read__start(ForkNumber, BlockNumber, Oid, Oid, Oid, bool, bool);
+       probe buffer__read__start(ForkNumber, BlockNumber, Oid, Oid, Oid, int, bool);
        probe buffer__read__done(ForkNumber, BlockNumber, Oid, Oid, Oid, int, bool, bool);
-       probe buffer__flush__start(ForkNumber, BlockNumber, Oid, Oid, Oid);
-       probe buffer__flush__done(ForkNumber, BlockNumber, Oid, Oid, Oid);
+       probe buffer__flush__start(ForkNumber, BlockNumber, Oid, Oid, Oid, int);
+       probe buffer__flush__done(ForkNumber, BlockNumber, Oid, Oid, Oid, int);
 
        probe buffer__checkpoint__start(int);
        probe buffer__checkpoint__sync__start();