Fix a subtle bug exposed by recent wal_sync_method rearrangements.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 1a604b4e3101e7e4327676144963f2a8fdb5722b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-05-17T17:24:57Z
Releases: 8.4.0
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.

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +1 −3
src/include/access/xlogdefs.h modified +3 −1