[tracker/binary-log: 3/4] libtracker-data: Use cached query_resource_id for object ids



commit 46c448d9cf33a39694567f98da2210b89536f279
Author: Jürg Billeter <j bitron ch>
Date:   Wed Dec 30 14:35:37 2009 +0100

    libtracker-data: Use cached query_resource_id for object ids

 src/libtracker-data/tracker-data-update.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 4d68f59..d89554b 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -1276,7 +1276,7 @@ tracker_data_delete_statement (const gchar  *graph,
 		if (class != NULL) {
 			tracker_db_journal_append_delete_statement_code (resource_buffer->id,
 				tracker_data_query_resource_id (predicate),
-				tracker_data_query_resource_id (object));
+				query_resource_id (object));
 
 			cache_delete_resource_type (class, graph);
 		} else {
@@ -1289,7 +1289,7 @@ tracker_data_delete_statement (const gchar  *graph,
 			if (tracker_property_get_data_type (field) == TRACKER_PROPERTY_TYPE_RESOURCE) {
 				tracker_db_journal_append_delete_statement_code (resource_buffer->id,
 					tracker_data_query_resource_id (predicate),
-					tracker_data_query_resource_id (object));
+					query_resource_id (object));
 			} else {
 				tracker_db_journal_append_delete_statement (resource_buffer->id,
 					tracker_data_query_resource_id (predicate),
@@ -1501,7 +1501,7 @@ tracker_data_insert_statement_with_uri (const gchar            *graph,
 
 	tracker_db_journal_append_insert_statement_code (resource_buffer->id,
 		tracker_data_query_resource_id (predicate),
-		tracker_data_query_resource_id (object));
+		query_resource_id (object));
 
 	if (strcmp (predicate, RDF_PREFIX "type") == 0) {
 		/* handle rdf:type statements specially to



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