[tracker/journal: 2/8] libtracker-data: Do not initializer journal in read-only mode
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/journal: 2/8] libtracker-data: Do not initializer journal in read-only mode
- Date: Wed, 6 Oct 2010 16:41:42 +0000 (UTC)
commit a47f772a20359895412115eb8b23751ed0952e7b
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 79896e8..980a1fd 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -2922,7 +2922,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]