mirror of
https://github.com/neondatabase/neon.git
synced 2026-08-18 12:08:19 +00:00
bc684e9d3b
Since fdatasync is used for flushing WAL, changing file size is unsafe. Make segment creation atomic by using tmp file + rename to avoid using partially initialized segments. fixes https://github.com/neondatabase/neon/issues/6402