[tracker] libtracker-data: Do not initializer journal in read-only mode
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Do not initializer journal in read-only mode
- Date: Mon, 25 Oct 2010 12:52:57 +0000 (UTC)
commit 4ab47c66e560c41bea9a167a3bbc3d28e8035eb7
Author: Jürg Billeter <j bitron ch>
Date: Tue Sep 28 15:50:03 2010 +0200
libtracker-data: Do not initializer journal in read-only mode
src/libtracker-data/tracker-data-manager.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 45d9600..ca0ed70 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -2931,7 +2931,9 @@ tracker_data_manager_init (TrackerDBManagerFlags flags,
/* First time, no need to check ontology */
check_ontology = FALSE;
} else {
- tracker_db_journal_init (NULL, FALSE);
+ if (!read_only) {
+ tracker_db_journal_init (NULL, FALSE);
+ }
/* Load ontology from database into memory */
db_get_static_data (iface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]