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)
commitd2b20a64172890f147c5ebac96d55407665afc62
treeaf36d4569e28e67e10461bdd6b260cb9c242b474
parent6940c4b2b2ee7a5616d85671ef68d1d9507607fe
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