diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-12-18 18:45:05 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-12-18 18:45:05 +0000 |
commit | 1f159e562b2a31234edba781218ce5278ea2cfd8 (patch) | |
tree | 347b6c792b54d1d2e16c156bc0f5b6b09a4bacc8 /src/backend/access/transam/xlog.c | |
parent | 5491233f5245c464be2286ad894448b21ef757db (diff) | |
download | postgresql-1f159e562b2a31234edba781218ce5278ea2cfd8.tar.gz postgresql-1f159e562b2a31234edba781218ce5278ea2cfd8.zip |
>> Here is a patch for the beos port (All regression tests are OK).
>> xlog.c : special case for beos to avoid 'link' which does not work yet
>> beos/sem.c : implementation of new sem_ctl call (GETPID) and a new
>sem_op
>> flag (IPCNOWAIT)
>> dynloader/beos.c : add a verification of symbol validity (seem that
the
>> loader sometime return OK with an invalid symbol)
>> postmaster.c : add beos forking support for the new checkpoint
process
>> postgres.c : remove beos special case for getrusage
>> beos.h : Correction of a bas definition of AF_UNIX, misc defnitions
>>
>>
>> thanks
>>
>>
>> cyril
Cyril VELTER
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index ba85f4b60d0..f39e279a729 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.43 2000/12/18 00:44:45 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.44 2000/12/18 18:45:03 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -874,7 +874,11 @@ XLogFileInit(uint32 log, uint32 seg, bool *usexistent) close(fd); +#ifndef __BEOS__ if (link(tpath, path) < 0) +#else + if (rename(tpath, path) < 0) +#endif elog(STOP, "InitRelink(logfile %u seg %u) failed: %m", logId, logSeg); |