[evolution-data-server/openismus-work-master] EBookBackendSqliteDB: Fixed retry loop when SQLite is busy.



commit 7e46ce630b7c5d60ad3f72ea1534536797c6047e
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Thu Jan 17 13:37:30 2013 +0900

    EBookBackendSqliteDB: Fixed retry loop when SQLite is busy.

 .../libedata-book/e-book-backend-sqlitedb.c        |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend-sqlitedb.c b/addressbook/libedata-book/e-book-backend-sqlitedb.c
index c441119..20cf529 100644
--- a/addressbook/libedata-book/e-book-backend-sqlitedb.c
+++ b/addressbook/libedata-book/e-book-backend-sqlitedb.c
@@ -290,7 +290,8 @@ book_backend_sql_exec_real (sqlite3 *db,
 			sqlite3_free (errmsg);
 			errmsg = NULL;
 		}
-		ret = sqlite3_exec (db, stmt, NULL, NULL, &errmsg);
+		g_thread_yield ();
+		ret = sqlite3_exec (db, stmt, callback, data, &errmsg);
 	}
 
 	if (ret != SQLITE_OK) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]