projects
/
users
/
hanada
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26174d5
)
Clarify C comment that O_SYNC/O_FSYNC are really the same settting, as
author
Bruce Momjian
<
[email protected]
>
Fri, 11 Mar 2011 01:02:52 +0000
(20:02 -0500)
committer
Bruce Momjian
<
[email protected]
>
Fri, 11 Mar 2011 01:02:52 +0000
(20:02 -0500)
opposed to O_DSYNC.
src/backend/access/transam/xlog.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/transam/xlog.c
b/src/backend/access/transam/xlog.c
index 3aa22bcf9e7f2676efda16c43380b0e36a782c36..15af6693f5d7283fa84be618f341c52910842bc7 100644
(file)
--- a/
src/backend/access/transam/xlog.c
+++ b/
src/backend/access/transam/xlog.c
@@
-8600,7
+8600,7
@@
get_sync_bit(int method)
/*
* Optimize writes by bypassing kernel cache with O_DIRECT when using
- * O_SYNC
, O_DSYNC or O_FSYNC.
But only if archiving and streaming are
+ * O_SYNC
/O_FSYNC and O_DSYNC.
But only if archiving and streaming are
* disabled, otherwise the archive command or walsender process will read
* the WAL soon after writing it, which is guaranteed to cause a physical
* read if we bypassed the kernel cache. We also skip the