diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-03-08T10·35+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-03-08T10·35+0000 |
commit | 2e4ef03aa3247782339f3d5af8547b448d38b8d2 (patch) | |
tree | 8496d733eadfc9004ce7766242551e4420b872fc /src | |
parent | 04791840f4dd4d6bcc96aea133e9fda7c03897de (diff) |
* Increase the sqlite timeout.
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/local-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 8a690b91399a..c7232056f8ed 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -282,7 +282,7 @@ void LocalStore::openDB(bool create) SQLITE_OPEN_READWRITE | (create ? SQLITE_OPEN_CREATE : 0), 0) != SQLITE_OK) throw Error("cannot open SQLite database"); - if (sqlite3_busy_timeout(db, 60000) != SQLITE_OK) + if (sqlite3_busy_timeout(db, 60 * 60 * 1000) != SQLITE_OK) throw SQLiteError(db, "setting timeout"); if (sqlite3_exec(db, "pragma foreign_keys = 1;", 0, 0, 0) != SQLITE_OK) |