Skip to content

Commit 4ee79fd

Browse files
committed
Change the name of dtrace wal tracepoints:
TRACE_POSTGRESQL_WAL_BUFFER_WRITE_DIRTY Robert Lor
1 parent 4fc6e2f commit 4ee79fd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/backend/access/transam/xlog.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.324 2008/12/17 01:39:03 momjian Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.325 2008/12/24 20:41:29 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1318,14 +1318,14 @@ AdvanceXLInsertBuffer(bool new_segment)
13181318
* Have to write buffers while holding insert lock. This is
13191319
* not good, so only write as much as we absolutely must.
13201320
*/
1321-
TRACE_POSTGRESQL_WAL_BUFFER_WRITE_START();
1321+
TRACE_POSTGRESQL_WAL_BUFFER_WRITE_DIRTY_START();
13221322
WriteRqst.Write = OldPageRqstPtr;
13231323
WriteRqst.Flush.xlogid = 0;
13241324
WriteRqst.Flush.xrecoff = 0;
13251325
XLogWrite(WriteRqst, false, false);
13261326
LWLockRelease(WALWriteLock);
13271327
Insert->LogwrtResult = LogwrtResult;
1328-
TRACE_POSTGRESQL_WAL_BUFFER_WRITE_DONE();
1328+
TRACE_POSTGRESQL_WAL_BUFFER_WRITE_DIRTY_DONE();
13291329
}
13301330
}
13311331
}

src/backend/utils/probes.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2006-2008, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/backend/utils/probes.d,v 1.4 2008/12/17 01:39:04 momjian Exp $
6+
* $PostgreSQL: pgsql/src/backend/utils/probes.d,v 1.5 2008/12/24 20:41:29 momjian Exp $
77
* ----------
88
*/
99

@@ -89,6 +89,6 @@ provider postgresql {
8989

9090
probe xlog__insert(unsigned char, unsigned char);
9191
probe xlog__switch();
92-
probe wal__buffer__write__start();
93-
probe wal__buffer__write__done();
92+
probe wal__buffer__write__dirty__start();
93+
probe wal__buffer__write__dirty__done();
9494
};

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