[tracker/rss-enclosures] libtracker-data: Store ID mappings in ontology journal



commit 8237dbc9c5015bea6c502da804cb0354676a90be
Author: Jürg Billeter <j bitron ch>
Date:   Wed Sep 29 13:39:39 2010 +0200

    libtracker-data: Store ID mappings in ontology journal

 src/libtracker-data/tracker-db-journal.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-journal.c b/src/libtracker-data/tracker-db-journal.c
index 040d668..f92af08 100644
--- a/src/libtracker-data/tracker-db-journal.c
+++ b/src/libtracker-data/tracker-db-journal.c
@@ -906,7 +906,17 @@ gboolean
 tracker_db_journal_append_resource (gint         s_id,
                                     const gchar *uri)
 {
-	return db_journal_writer_append_resource (&writer, s_id, uri);
+	gboolean ret;
+
+	g_return_val_if_fail (current_transaction_format != TRANSACTION_FORMAT_NONE, FALSE);
+
+	ret = db_journal_writer_append_resource (&writer, s_id, uri);
+
+	if (current_transaction_format == TRANSACTION_FORMAT_ONTOLOGY) {
+		db_journal_writer_append_resource (&ontology_writer, s_id, uri);
+	}
+
+	return ret;
 }
 
 gboolean



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]