Make CREATE DATABASE safe against losing whole files by fsyncing the

Greg Stark <stark@mit.edu>

Commit: 1012492bc0bfb322d59db17e17735d17d634e264
Author: Greg Stark <stark@mit.edu>
Date: 2010-02-14T17:50:52Z
Releases: 9.0.0
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