[evolution-data-server] EBookSqlite: Fixed a transaction which wanted to read, but asked to write.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] EBookSqlite: Fixed a transaction which wanted to read, but asked to write.
- Date: Fri, 29 Nov 2013 18:39:22 +0000 (UTC)
commit 97faf1b82aebb84d4adeceb64dd59c59d0e7f614
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Sat Nov 30 03:33:14 2013 +0900
EBookSqlite: Fixed a transaction which wanted to read, but asked to write.
addressbook/libedata-book/e-book-sqlite.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-sqlite.c b/addressbook/libedata-book/e-book-sqlite.c
index 77f3145..923da63 100644
--- a/addressbook/libedata-book/e-book-sqlite.c
+++ b/addressbook/libedata-book/e-book-sqlite.c
@@ -7877,7 +7877,7 @@ e_book_sqlite_cursor_calculate (EBookSqlite *ebsql,
EBSQL_LOCK_OR_RETURN (ebsql, cancellable, -1);
/* Start a read transaction, it's important our two queries are atomic */
- if (!ebsql_start_transaction (ebsql, EBSQL_LOCK_WRITE, cancellable, error)) {
+ if (!ebsql_start_transaction (ebsql, EBSQL_LOCK_READ, cancellable, error)) {
EBSQL_UNLOCK_MUTEX (&ebsql->priv->lock);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]