Fix a subtle bug exposed by recent wal_sync_method rearrangements.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 17 May 2008 17:24:57 +0000 (17:24 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 17 May 2008 17:24:57 +0000 (17:24 +0000)
commitfa8692fc1b0bd41c32c38e936cb0cf7a48c8be0f
treeb83f67e79c615150c80875e1324010d04997da71
parent88f215a8e4b13403462ec5e1b7ee77cfa8e07c59
Fix a subtle bug exposed by recent wal_sync_method rearrangements.
Formerly, the default value of wal_sync_method was determined inside xlog.c,
but now it is determined inside guc.c.  guc.c was reading xlogdefs.h
without having read <fcntl.h>, leading to wrong determination of
DEFAULT_SYNC_METHOD.  Obviously xlogdefs.h needs to include <fcntl.h>
for itself to ensure stable results.
src/backend/access/transam/xlog.c
src/include/access/xlogdefs.h