summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2010-08-30 15:38:17 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2010-08-30 15:38:17 +0000
commit34a7ee82c40d596b053456a14c7b8dffc2828762 (patch)
tree62178186b4f5d56eb5dbb4d6333621a3994d62d1 /src
parent4c5fb76c39da3ceba1a86ece576cab112470a878 (diff)
Fix misleading DEBUG2 issued during RemoveOldXlogFiles()
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/xlog.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 6249e3c724c..15b3476c26f 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.430.2.3 2010/08/30 15:21:18 sriggs Exp $
+ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.430.2.4 2010/08/30 15:38:17 sriggs Exp $
*
*-------------------------------------------------------------------------
*/
@@ -3272,9 +3272,6 @@ RemoveOldXlogFiles(uint32 log, uint32 seg, XLogRecPtr endptr)
#endif
struct stat statbuf;
- elog(DEBUG2, "removing WAL segments older than log file %u, segment %u",
- log, seg);
-
/*
* Initialize info about where to try to recycle to. We allow recycling
* segments up to XLOGfileslop segments beyond the current XLOG location.
@@ -3291,6 +3288,9 @@ RemoveOldXlogFiles(uint32 log, uint32 seg, XLogRecPtr endptr)
XLogFileName(lastoff, ThisTimeLineID, log, seg);
+ elog(DEBUG2, "attempting to remove WAL segments older than log file %s",
+ lastoff);
+
while ((xlde = ReadDir(xldir, XLOGDIR)) != NULL)
{
/*