diff options
| author | Bruce Momjian <bruce@momjian.us> | 2005-03-24 04:36:20 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2005-03-24 04:36:20 +0000 |
| commit | b1f57d88f56e0fbb49e4e5c8839cd3fb3a580a14 (patch) | |
| tree | c10060fd13f479e4e3c957c58b8c00e99606b6c9 /src/include | |
| parent | 0275b3f783731f7fa95ea8b93ad3f48fc7a2f29f (diff) | |
Change Win32 O_SYNC method to O_DSYNC because that is what the method
currently does. This is now the default Win32 wal sync method because
we perfer o_datasync to fsync.
Also, change Win32 fsync to a new wal sync method called
fsync_writethrough because that is the behavior of _commit, which is
what is used for fsync on Win32.
Backpatch to 8.0.X.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/port/win32.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/port/win32.h b/src/include/port/win32.h index c3c7da737bc..de2483add01 100644 --- a/src/include/port/win32.h +++ b/src/include/port/win32.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.43 2005/02/27 00:53:29 momjian Exp $ */ +/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.44 2005/03/24 04:36:19 momjian Exp $ */ /* undefine and redefine after #include */ #undef mkdir @@ -17,6 +17,7 @@ #define fsync(a) _commit(a) +#define FSYNC_IS_WRITE_THROUGH #define ftruncate(a,b) chsize(a,b) #define USES_WINSOCK @@ -189,7 +190,7 @@ typedef int pid_t; * to ensure that we don't collide with a future definition. It means * we cannot use _O_NOINHERIT ourselves. */ -#define O_SYNC 0x0080 +#define O_DSYNC 0x0080 /* * Supplement to <errno.h>. |
