[tracker/ontology-cope] Squasme with previous commit



commit ead5805d794e80c74d8cbbb439a4d37e2ebe3c14
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Mar 19 11:13:30 2010 +0100

    Squasme with previous commit

 src/libtracker-data/tracker-data-update.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 96cd1a2..3fec0c1 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2293,7 +2293,6 @@ ontology_transaction_end (GList *ontology_queue)
 {
 	GList *l;
 	const gchar *ontology_uri = NULL;
-	gint last_mod = 0;
 
 	tracker_data_ontology_import_into_db (TRUE);
 
@@ -2319,11 +2318,16 @@ ontology_transaction_end (GList *ontology_queue)
 		TrackerOntology *ontology;
 		ontology = tracker_ontologies_get_ontology_by_uri (ontology_uri);
 		if (ontology) {
+			gint last_mod = 0;
 			TrackerDBInterface *iface;
 			TrackerDBStatement *stmt;
 
 			iface = tracker_db_manager_get_db_interface ();
 
+			/* We can't do better than this cast, it's stored as an int in the
+			 * db. See tracker-data-manager.c for more info. */
+			last_mod = (gint) tracker_ontology_get_last_modified (ontology);
+
 			stmt = tracker_db_interface_create_statement (iface,
 			        "UPDATE \"rdfs:Resource\" SET \"nao:lastModified\"= ? "
 			        "WHERE \"rdfs:Resource\".ID = "



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