[tracker/async-queries] libtracker-db: Use multi-thread instead of serialized mode in SQLite



commit 23c2cb599fe6827ba20dcc538fb99bebbf30b794
Author: Jürg Billeter <j bitron ch>
Date:   Wed Apr 14 11:08:41 2010 +0200

    libtracker-db: Use multi-thread instead of serialized mode in SQLite

 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 757a462..4ecde38 100644
--- a/src/libtracker-db/tracker-db-interface-sqlite.c
+++ b/src/libtracker-db/tracker-db-interface-sqlite.c
@@ -138,6 +138,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]