diff options
author | Andres Freund <andres@anarazel.de> | 2015-06-21 18:35:59 +0200 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2015-06-21 18:37:09 +0200 |
commit | 90231cd5188c43da94f58f7a839eee9286d0f864 (patch) | |
tree | 103258c2d55b04a43b3767757f1465f7e04607ea /src/backend/access/transam/xlog.c | |
parent | 103382abf87453d6555755da8f9fbef0b9965f81 (diff) | |
download | postgresql-90231cd5188c43da94f58f7a839eee9286d0f864.tar.gz postgresql-90231cd5188c43da94f58f7a839eee9286d0f864.zip |
Add missing check for wal_debug GUC.
9a20a9b2 added a new elog(), enabled when WAL_DEBUG is defined. The
other WAL_DEBUG dependant messages check for the wal_debug GUC, but this
one did not. While at it replace 'upto' with 'up to'.
Discussion: 20150610110253.GF3832@alap3.anarazel.de
Backpatch to 9.4, the first release containing 9a20a9b2.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 150d56afb8f..4e37ad3e21a 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -1983,9 +1983,9 @@ AdvanceXLInsertBuffer(XLogRecPtr upto, bool opportunistic) LWLockRelease(WALBufMappingLock); #ifdef WAL_DEBUG - if (npages > 0) + if (XLOG_DEBUG && npages > 0) { - elog(DEBUG1, "initialized %d pages, upto %X/%X", + elog(DEBUG1, "initialized %d pages, up to %X/%X", npages, (uint32) (NewPageEndPtr >> 32), (uint32) NewPageEndPtr); } #endif |