forked from lix-project/hydra
* Don't disable fsync in production.
This commit is contained in:
parent
109cc35edf
commit
3c47a11bd9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue