[tracker/checkpoint] libtracker-data: Set synchronous = OFF if journal is enabled
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/checkpoint] libtracker-data: Set synchronous = OFF if journal is enabled
- Date: Wed, 29 Jun 2011 15:54:16 +0000 (UTC)
commit e545139ce955058c16957067eca07e596b3d91f1
Author: JÃrg Billeter <j bitron ch>
Date: Wed Jun 29 17:53:36 2011 +0200
libtracker-data: Set synchronous = OFF if journal is enabled
src/libtracker-data/tracker-db-manager.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index c76e934..96bfc4d 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -234,7 +234,11 @@ db_set_params (TrackerDBInterface *iface,
GError *internal_error = NULL;
TrackerDBStatement *stmt;
+#ifdef DISABLE_JOURNAL
tracker_db_interface_execute_query (iface, NULL, "PRAGMA synchronous = NORMAL;");
+#else
+ tracker_db_interface_execute_query (iface, NULL, "PRAGMA synchronous = OFF;");
+#endif /* DISABLE_JOURNAL */
tracker_db_interface_execute_query (iface, NULL, "PRAGMA count_changes = 0;");
tracker_db_interface_execute_query (iface, NULL, "PRAGMA temp_store = FILE;");
tracker_db_interface_execute_query (iface, NULL, "PRAGMA encoding = \"UTF-8\"");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]