tracker r2861 - in trunk: . src/libtracker-data



Author: carlosg
Date: Thu Jan 29 16:26:25 2009
New Revision: 2861
URL: http://svn.gnome.org/viewvc/tracker?rev=2861&view=rev

Log:
2009-01-29  Carlos Garnacho  <carlos imendio com>

        * src/libtracker-data/tracker-data-update.c
        (tracker_data_update_set_metadata): Also update IndexTime in the
        Services table if necessary, so the indexer doesn't check against
        outdated mtimes afterwards.

Modified:
   trunk/ChangeLog
   trunk/src/libtracker-data/tracker-data-update.c

Modified: trunk/src/libtracker-data/tracker-data-update.c
==============================================================================
--- trunk/src/libtracker-data/tracker-data-update.c	(original)
+++ trunk/src/libtracker-data/tracker-data-update.c	Thu Jan 29 16:26:25 2009
@@ -437,6 +437,13 @@
 						    val,
 						    service_id);
 		g_free (val);
+	} else if (tracker_field_get_data_type (field) == TRACKER_FIELD_TYPE_DATE &&
+		   (strcmp (tracker_field_get_name (field), "File:Modified") == 0)) {
+		/* Handle mtime */
+		tracker_db_interface_execute_query (iface, NULL,
+						    "update Services set IndexTime = '%s' where ID = %d",
+						    value,
+						    service_id);
 	}
 
 	g_free (id_str);



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