[evolution-data-server/openismus-work-3-8] EBookSqlite: Fixed a transaction which wanted to read, but asked to write.



commit 4e8ba5644fa24480c84ba115fe228588307fca1e
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]