Macro alignment cleanup.

This commit is contained in:
Bruce Momjian 2005-07-23 15:29:47 +00:00
parent f76f24dfff
commit 4098c8867d
1 changed files with 26 additions and 17 deletions

View File

@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.208 2005/07/08 04:07:26 tgl Exp $
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.209 2005/07/23 15:29:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -47,6 +47,15 @@
#include "utils/relcache.h"
/*
* Becauase O_DIRECT bypasses the kernel buffers, and because we never
* read those buffers except during crash recovery, it seems like
* a win to use it in all cases.
*/
#ifdef O_DIRECT
#define PG_O_DIRECT O_DIR(enableFsync ? (open_sync_bit | O_DIRECT) : 0)
#else
/*
* This chunk of hackery attempts to determine which file sync methods
* are available on the current platform, and to choose an appropriate