Make CREATE DATABASE safe against losing whole files by fsyncing the

Greg Stark <stark@mit.edu>

Commit: 36e1ed02bf27ace0b41eb1406e389e19c88b3a13
Author: Greg Stark <stark@mit.edu>
Date: 2010-02-14T17:50:47Z
Releases: 8.4.3
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