* Don't disable fsync in production.

This commit is contained in:
Eelco Dolstra 2009-04-25 07:48:30 +00:00
parent 109cc35edf
commit 3c47a11bd9

View file

@ -73,7 +73,8 @@ sub getHydraDBPath {
sub openHydraDB {
my $db = Hydra::Schema->connect(getHydraDBPath, "", "", {});
$db->storage->dbh->do("PRAGMA synchronous = OFF;");
$db->storage->dbh->do("PRAGMA synchronous = OFF;")
if defined $ENV{'HYDRA_NO_FSYNC'};
return $db;
}