[evolution-data-server] EBookBackendSqliteDB: Fixed retry loop when SQLite is busy.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] EBookBackendSqliteDB: Fixed retry loop when SQLite is busy.
- Date: Thu, 17 Jan 2013 09:32:38 +0000 (UTC)
commit 13765d0e1384474c11aebb3beae2c288f7e35d6c
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 e23c278..3275017 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]