Skip to content

Commit 67876a1

Browse files
committed
Add missing check for wal_debug GUC.
9a20a9b 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 9a20a9b.
1 parent b2ed168 commit 67876a1

File tree

1 file changed

+2
-2
lines changed
  • src/backend/access/transam

1 file changed

+2
-2
lines changed

src/backend/access/transam/xlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2255,9 +2255,9 @@ AdvanceXLInsertBuffer(XLogRecPtr upto, bool opportunistic)
22552255
LWLockRelease(WALBufMappingLock);
22562256

22572257
#ifdef WAL_DEBUG
2258-
if (npages > 0)
2258+
if (XLOG_DEBUG && npages > 0)
22592259
{
2260-
elog(DEBUG1, "initialized %d pages, upto %X/%X",
2260+
elog(DEBUG1, "initialized %d pages, up to %X/%X",
22612261
npages, (uint32) (NewPageEndPtr >> 32), (uint32) NewPageEndPtr);
22622262
}
22632263
#endif

0 commit comments

Comments
 (0)