[tracker] libtracker-data: Store ID mappings in ontology journal
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Store ID mappings in ontology journal
- Date: Mon, 25 Oct 2010 12:53:07 +0000 (UTC)
commit 58cacf55a247f802a759c8fc6b3303c68a76b03d
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]