|
7 | 7 | * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group |
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California |
9 | 9 | * |
10 | | - * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.171 2004/10/07 15:21:51 momjian Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.172 2004/10/09 02:46:40 momjian Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -1513,8 +1513,7 @@ XLogFileInit(uint32 log, uint32 seg, |
1513 | 1513 | * up pre-creating an extra log segment. That seems OK, and better |
1514 | 1514 | * than holding the lock throughout this lengthy process. |
1515 | 1515 | */ |
1516 | | -snprintf(tmppath,MAXPGPATH,"%s/xlogtemp.%d", |
1517 | | -XLogDir, (int)getpid()); |
| 1516 | +snprintf(tmppath,MAXPGPATH,"%s/xlogtemp.%d",XLogDir,getpid()); |
1518 | 1517 |
|
1519 | 1518 | unlink(tmppath); |
1520 | 1519 |
|
@@ -1634,8 +1633,7 @@ XLogFileCopy(uint32 log, uint32 seg, |
1634 | 1633 | /* |
1635 | 1634 | * Copy into a temp file name. |
1636 | 1635 | */ |
1637 | | -snprintf(tmppath,MAXPGPATH,"%s/xlogtemp.%d", |
1638 | | -XLogDir, (int)getpid()); |
| 1636 | +snprintf(tmppath,MAXPGPATH,"%s/xlogtemp.%d",XLogDir,getpid()); |
1639 | 1637 |
|
1640 | 1638 | unlink(tmppath); |
1641 | 1639 |
|
@@ -2900,8 +2898,7 @@ writeTimeLineHistory(TimeLineID newTLI, TimeLineID parentTLI, |
2900 | 2898 | /* |
2901 | 2899 | * Write into a temp file name. |
2902 | 2900 | */ |
2903 | | -snprintf(tmppath,MAXPGPATH,"%s/xlogtemp.%d", |
2904 | | -XLogDir, (int)getpid()); |
| 2901 | +snprintf(tmppath,MAXPGPATH,"%s/xlogtemp.%d",XLogDir,getpid()); |
2905 | 2902 |
|
2906 | 2903 | unlink(tmppath); |
2907 | 2904 |
|
|