[Pkg-owncloud-commits] [owncloud-client] 23/115: csync statedb: Set sqlite3_busy_timeout to 5 seconds.

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri Aug 29 22:03:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 1b5bbfdad3e1ba44834f92106772139e78dcb5c3
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Wed Aug 13 17:16:24 2014 +0200

    csync statedb: Set sqlite3_busy_timeout to 5 seconds.
---
 csync/src/csync_statedb.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/csync/src/csync_statedb.c b/csync/src/csync_statedb.c
index e23215d..8780915 100644
--- a/csync/src/csync_statedb.c
+++ b/csync/src/csync_statedb.c
@@ -222,6 +222,9 @@ int csync_statedb_load(CSYNC *ctx, const char *statedb, sqlite3 **pdb) {
   result = csync_statedb_query(db, "PRAGMA case_sensitive_like = ON;");
   c_strlist_destroy(result);
 
+  /* set a busy handler with 5 seconds timeout */
+  sqlite3_busy_timeout(db, 5000);
+
 #ifndef NDEBUG
   sqlite3_profile(db, sqlite_profile, 0 );
 #endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list