summaryrefslogtreecommitdiff
path: root/src/backend/access/transam/clog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-08-25 23:24:39 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-08-25 23:24:39 +0000
commitca86791a6170d343a6ae33901ef718be8609612f (patch)
tree9cb6e575672c6eb8b5b20b4654e841113e820338 /src/backend/access/transam/clog.c
parenta263e39bec38c7b538197df7d5ddc1c3d3835b39 (diff)
downloadpostgresql-ca86791a6170d343a6ae33901ef718be8609612f.tar.gz
Fix portability problem in new CLOG code, per report from Rene Pijlman.
Diffstat (limited to 'src/backend/access/transam/clog.c')
-rw-r--r--src/backend/access/transam/clog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/access/transam/clog.c b/src/backend/access/transam/clog.c
index 2347edfd09..07581e4444 100644
--- a/src/backend/access/transam/clog.c
+++ b/src/backend/access/transam/clog.c
@@ -13,7 +13,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Header: /cvsroot/pgsql/src/backend/access/transam/clog.c,v 1.1 2001/08/25 18:52:41 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/transam/clog.c,v 1.2 2001/08/25 23:24:39 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -22,6 +22,8 @@
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
+#include <sys/stat.h>
+#include <sys/types.h>
#include <unistd.h>
#include "access/clog.h"
@@ -882,6 +884,7 @@ ScanCLOGDirectory(int cutoffPage, bool doDeletions)
found = true;
if (doDeletions)
{
+ elog(LOG, "removing commit log file %s", clde->d_name);
snprintf(path, MAXPGPATH, "%s/%s", ClogDir, clde->d_name);
unlink(path);
}