Make CREATE DATABASE safe against losing whole files by fsyncing the

Greg Stark <stark@mit.edu>

Commit: 1534023ff0bd836ec851f780fa3fa1289ecb752f
Author: Greg Stark <stark@mit.edu>
Date: 2010-02-14T17:50:39Z
Releases: 8.2.16
Make CREATE DATABASE safe against losing whole files by fsyncing the
directory and not just the individual files.

Back-patch to 8.1 -- before that we just called "cp -r" and never
fsynced anything anyways.

Files

PathChange+/−
src/port/copydir.c modified +22 −1