Commit 32f29bb5 authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Carlos Garnacho

Also update IndexTime in the Services table if necessary, so the indexer

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.

svn path=/trunk/; revision=2861
parent d91f1a7a
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.
2009-01-29 Carlos Garnacho <carlos@imendio.com>
* src/tracker-indexer/tracker-module-file.c
......
......@@ -437,6 +437,13 @@ tracker_data_update_set_metadata (TrackerService *service,
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment