[tracker/rss-enclosures] libtracker-db: Use multi-thread mode in SQLite
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] libtracker-db: Use multi-thread mode in SQLite
- Date: Mon, 3 May 2010 00:38:06 +0000 (UTC)
commit 323cb61354d5ed3feffb07bec174b363f8ff025a
Author: Jürg Billeter <j bitron ch>
Date: Thu Apr 15 17:54:05 2010 +0200
libtracker-db: Use multi-thread mode in SQLite
Serialized mode is not necessary as we do not use the same database
connection in multiple threads.
src/libtracker-db/tracker-db-interface-sqlite.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-interface-sqlite.c b/src/libtracker-db/tracker-db-interface-sqlite.c
index 308dd50..03cefb5 100644
--- a/src/libtracker-db/tracker-db-interface-sqlite.c
+++ b/src/libtracker-db/tracker-db-interface-sqlite.c
@@ -142,6 +142,7 @@ G_DEFINE_TYPE_WITH_CODE (TrackerDBCursorSqlite, tracker_db_cursor_sqlite, G_TYPE
void
tracker_db_interface_sqlite_enable_shared_cache (void)
{
+ sqlite3_config (SQLITE_CONFIG_MULTITHREAD);
sqlite3_enable_shared_cache (1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]