1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

Set a long SQLite timeout in the binary cache substituter

This commit is contained in:
Eelco Dolstra 2012-12-06 11:43:34 +01:00
parent 52edef3495
commit 8cc19ed089
2 changed files with 3 additions and 1 deletions

View file

@ -112,6 +112,8 @@ sub initCache {
$dbh->{RaiseError} = 1;
$dbh->{PrintError} = 0;
$dbh->sqlite_busy_timeout(60 * 60 * 1000);
$dbh->do("pragma synchronous = off"); # we can always reproduce the cache
$dbh->do("pragma journal_mode = truncate");