File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/backend/access/transam Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.211 2005/07/29 03:22:33 momjian Exp $
10
+ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.212 2005/07/29 03:25:53 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
54
54
* with fsync(), but because skipping the kernel buffer forces writes out
55
55
* quickly, it seems best just to use it for O_SYNC. It is hard to imagine
56
56
* how fsync() could be a win for O_DIRECT compared to O_SYNC and O_DIRECT.
57
+ * Also, O_DIRECT is never enough to force data to the drives, it merely
58
+ * tries to bypass the kernel cache, so we still need O_SYNC or fsync().
57
59
*/
58
60
#ifdef O_DIRECT
59
61
#define PG_O_DIRECT O_DIRECT
You can’t perform that action at this time.
0 commit comments