Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 90231cd

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 103382a commit 90231cd

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1983,9 +1983,9 @@ AdvanceXLInsertBuffer(XLogRecPtr upto, bool opportunistic)
19831983
LWLockRelease(WALBufMappingLock);
19841984

19851985
#ifdef WAL_DEBUG
1986-
if (npages > 0)
1986+
if (XLOG_DEBUG && npages > 0)
19871987
{
1988-
elog(DEBUG1, "initialized %d pages, upto %X/%X",
1988+
elog(DEBUG1, "initialized %d pages, up to %X/%X",
19891989
npages, (uint32) (NewPageEndPtr >> 32), (uint32) NewPageEndPtr);
19901990
}
19911991
#endif

0 commit comments

Comments
 (0)