OSDN Git Service

Make CREATE DATABASE safe against losing whole files by fsyncing the
authorGreg Stark <stark@mit.edu>
Sun, 14 Feb 2010 17:50:52 +0000 (17:50 +0000)
committerGreg Stark <stark@mit.edu>
Sun, 14 Feb 2010 17:50:52 +0000 (17:50 +0000)
commit1012492bc0bfb322d59db17e17735d17d634e264
treef622486e642aed2ed1d26bc7d174570b8329cc5a
parenta05af1d4047349bfff73234227c7663cc05a8165
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.
src/port/copydir.c