[tracker/binary-log] libtracker-data: Append inserted resources to journal



commit 87a84ab3b21daf53ece94bf6bceef119c2cf40a1
Author: Jürg Billeter <j bitron ch>
Date:   Tue Dec 29 14:29:24 2009 +0100

    libtracker-data: Append inserted resources to journal

 src/libtracker-data/tracker-data-update.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 75d898f..457af70 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -395,6 +395,8 @@ ensure_resource_id (const gchar *uri)
 		tracker_db_statement_execute (stmt, NULL);
 		g_object_unref (stmt);
 
+		tracker_db_journal_append_resource (id, uri);
+
 		g_hash_table_insert (update_buffer.resource_cache, g_strdup (uri), GUINT_TO_POINTER (id));
 	}
 



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