mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +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:
@ -8600,7 +8600,7 @@ get_sync_bit(int method)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Optimize writes by bypassing kernel cache with O_DIRECT when using
|
* 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
|
* disabled, otherwise the archive command or walsender process will read
|
||||||
* the WAL soon after writing it, which is guaranteed to cause a physical
|
* the WAL soon after writing it, which is guaranteed to cause a physical
|
||||||
* read if we bypassed the kernel cache. We also skip the
|
* read if we bypassed the kernel cache. We also skip the
|
||||||
|
Reference in New Issue
Block a user