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

Commit ac791d3

Browse files
Fix misleading DEBUG2 issued during RemoveOldXlogFiles()
1 parent e72f15e commit ac791d3

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

src/backend/access/transam/xlog.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2010, 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.433 2010/08/30 14:22:05 sriggs Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.434 2010/08/30 15:37:41 sriggs Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -3272,9 +3272,6 @@ RemoveOldXlogFiles(uint32 log, uint32 seg, XLogRecPtr endptr)
32723272
#endif
32733273
struct stat statbuf;
32743274

3275-
elog(DEBUG2, "removing WAL segments older than log file %u, segment %u",
3276-
log, seg);
3277-
32783275
/*
32793276
* Initialize info about where to try to recycle to. We allow recycling
32803277
* segments up to XLOGfileslop segments beyond the current XLOG location.
@@ -3291,6 +3288,9 @@ RemoveOldXlogFiles(uint32 log, uint32 seg, XLogRecPtr endptr)
32913288

32923289
XLogFileName(lastoff, ThisTimeLineID, log, seg);
32933290

3291+
elog(DEBUG2, "attempting to remove WAL segments older than log file %s",
3292+
lastoff);
3293+
32943294
while ((xlde = ReadDir(xldir, XLOGDIR)) != NULL)
32953295
{
32963296
/*

0 commit comments

Comments
 (0)