Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitca86791

Browse files
committed
Fix portability problem in new CLOG code, per report from Rene Pijlman.
1 parenta263e39 commitca86791

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/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 $
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)

[8]ページ先頭

©2009-2025 Movatter.jp