[evolution-data-server/openismus-work] 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/openismus-work] EBookBackendSqliteDB: Fixed retry loop when SQLite is busy.
- Date: Thu, 17 Jan 2013 04:41:14 +0000 (UTC)
commit eef20ec518852ff2d0d5dcec867d7b0cd528137b
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 404ec4f..efbc60c 100644
--- a/addressbook/libedata-book/e-book-backend-sqlitedb.c
+++ b/addressbook/libedata-book/e-book-backend-sqlitedb.c
@@ -299,7 +299,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]