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

Commit ca86791

Browse files
committed
Fix portability problem in new CLOG code, per report from Rene Pijlman.
1 parent a263e39 commit ca86791

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

src/backend/access/transam/clog.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
1414
* Portions Copyright (c) 1994, Regents of the University of California
1515
*
16-
* $Header: /cvsroot/pgsql/src/backend/access/transam/clog.c,v 1.1 2001/08/25 18:52:41 tgl Exp $
16+
* $Header: /cvsroot/pgsql/src/backend/access/transam/clog.c,v 1.2 2001/08/25 23:24:39 tgl Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
@@ -22,6 +22,8 @@
2222
#include <fcntl.h>
2323
#include <dirent.h>
2424
#include <errno.h>
25+
#include <sys/stat.h>
26+
#include <sys/types.h>
2527
#include <unistd.h>
2628

2729
#include "access/clog.h"
@@ -882,6 +884,7 @@ ScanCLOGDirectory(int cutoffPage, bool doDeletions)
882884
found = true;
883885
if (doDeletions)
884886
{
887+
elog(LOG, "removing commit log file %s", clde->d_name);
885888
snprintf(path, MAXPGPATH, "%s/%s", ClogDir, clde->d_name);
886889
unlink(path);
887890
}

0 commit comments

Comments
 (0)