1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-22 23:02:54 +03:00

Clarify C comment that O_SYNC/O_FSYNC are really the same settting, as

opposed to O_DSYNC.
This commit is contained in:
Bruce Momjian 2011-03-10 20:02:52 -05:00
parent 26174d5fd0
commit 5ca543fb2e

View File

@ -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