|
6 | 6 | * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California
|
8 | 8 | *
|
9 |
| - * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.34 2000/11/25 20:33:50 tgl Exp $ |
| 9 | + * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.35 2000/11/27 05:36:12 tgl Exp $ |
10 | 10 | *
|
11 | 11 | *-------------------------------------------------------------------------
|
12 | 12 | */
|
@@ -860,7 +860,11 @@ XLogFileInit(uint32 log, uint32 seg, bool *usexistent)
|
860 | 860 | log,seg,0);
|
861 | 861 |
|
862 | 862 | close(fd);
|
863 |
| -link(tpath,path); |
| 863 | + |
| 864 | +if (link(tpath,path)<0) |
| 865 | +elog(STOP,"InitRelink(logfile %u seg %u) failed: %m", |
| 866 | +logId,logSeg); |
| 867 | + |
864 | 868 | unlink(tpath);
|
865 | 869 |
|
866 | 870 | fd=BasicOpenFile(path,O_RDWR |PG_BINARY,S_IRUSR |S_IWUSR);
|
|