[evolution-data-server/openismus-work-master] 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-master] EBookBackendSqliteDB: Fixed retry loop when SQLite is busy.
- Date: Thu, 17 Jan 2013 04:45:31 +0000 (UTC)
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]