Make CREATE DATABASE safe against losing whole files by fsyncing the

Greg Stark <stark@mit.edu>

Commit: 7f92f7cf711833db77b2d8214c60190cbfeebf1e
Author: Greg Stark <stark@mit.edu>
Date: 2010-02-14T17:50:34Z
Releases: 8.1.20
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