OSDN Git Service

Remove the special variable for open_sync_bit used in O_SYNC and O_DSYNC
authorMagnus Hagander <magnus@hagander.net>
Wed, 14 May 2008 14:02:57 +0000 (14:02 +0000)
committerMagnus Hagander <magnus@hagander.net>
Wed, 14 May 2008 14:02:57 +0000 (14:02 +0000)
commit9bf1db04c0acb50ceb3cddf531b67abb1aaf0c14
tree271c036a0260197d32baeedd9e41460208a9c5a7
parent14e6858ff41eea906b8a078c858025bb9e8fa9df
Remove the special variable for open_sync_bit used in O_SYNC and O_DSYNC
modes, replacing it with a call to a function that derives it from the
sync_method variable, now that it has distinct values for these two cases.

This means that assign_xlog_sync_method() no longer changes any settings,
thus fixing the bug introduced in the change to use a guc enum for
wal_sync_method.
src/backend/access/transam/xlog.c