Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set a timeout for retries when we get SQLITE_BUSY

  • Loading branch information...
commit 090d71eb5afc22d19a7e89e3e533ebeb71fa638e 1 parent 777a4cd
@orlandov authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/database.cc
View
4 src/database.cc
@@ -101,6 +101,10 @@ int Database::EIO_Open(eio_req *req) {
req->result = rc;
+ // Set the a 10s timeout valuei for retries on BUSY errors.
+ sqlite3_busy_timeout(*dbptr, 10000);
+
+
// sqlite3 *db = *dbptr;
// sqlite3_commit_hook(db, CommitHook, open_req->dbo);
// sqlite3_rollback_hook(db, RollbackHook, open_req->dbo);
Please sign in to comment.
Something went wrong with that request. Please try again.