|
13 | 13 | * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group |
14 | 14 | * Portions Copyright (c) 1994, Regents of the University of California |
15 | 15 | * |
16 | | - * $Header: /cvsroot/pgsql/src/backend/access/transam/clog.c,v 1.1 2001/08/2518:52:41 tgl Exp $ |
| 16 | + * $Header: /cvsroot/pgsql/src/backend/access/transam/clog.c,v 1.2 2001/08/2523:24:39 tgl Exp $ |
17 | 17 | * |
18 | 18 | *------------------------------------------------------------------------- |
19 | 19 | */ |
|
22 | 22 | #include<fcntl.h> |
23 | 23 | #include<dirent.h> |
24 | 24 | #include<errno.h> |
| 25 | +#include<sys/stat.h> |
| 26 | +#include<sys/types.h> |
25 | 27 | #include<unistd.h> |
26 | 28 |
|
27 | 29 | #include"access/clog.h" |
@@ -882,6 +884,7 @@ ScanCLOGDirectory(int cutoffPage, bool doDeletions) |
882 | 884 | found= true; |
883 | 885 | if (doDeletions) |
884 | 886 | { |
| 887 | +elog(LOG,"removing commit log file %s",clde->d_name); |
885 | 888 | snprintf(path,MAXPGPATH,"%s/%s",ClogDir,clde->d_name); |
886 | 889 | unlink(path); |
887 | 890 | } |
|