diff options
| author | Marc G. Fournier <scrappy@hub.org> | 1996-07-15 19:22:17 +0000 |
|---|---|---|
| committer | Marc G. Fournier <scrappy@hub.org> | 1996-07-15 19:22:17 +0000 |
| commit | faf21935d1221d097ce26bea9a0dac68efa00a18 (patch) | |
| tree | 6b03dc859061f9be011321f1e8a53266a33c34c4 /src/backend/storage/file/fd.c | |
| parent | d838e30f13028d37a383b7adb1f7f6e094df1496 (diff) | |
| download | postgresql-faf21935d1221d097ce26bea9a0dac68efa00a18.tar.gz | |
fsync patch from openlink
Diffstat (limited to 'src/backend/storage/file/fd.c')
| -rw-r--r-- | src/backend/storage/file/fd.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index bb94c4c5de..542e174eee 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -6,7 +6,7 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Id: fd.c,v 1.1.1.1 1996/07/09 06:21:55 scrappy Exp $ + * $Id: fd.c,v 1.2 1996/07/15 19:22:07 scrappy Exp $ * * NOTES: * @@ -191,6 +191,15 @@ static int FileAccess(File file); static File fileNameOpenFile(FileName fileName, int fileFlags, int fileMode); static char *filepath(char *filename); +#ifdef OPENLINK_PATCHES +pg_fsync(fd) +{ + extern int fsyncOff; + return fsyncOff ? 0 : fsync(fd); +} +#define fsync pg_fsync +#endif + #if defined(FDDEBUG) static void _dump_lru() |
