[tracker/monitor-created-event-fixes] fixup
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/monitor-created-event-fixes] fixup
- Date: Mon, 17 Jan 2011 15:51:49 +0000 (UTC)
commit ef571b8f895260adfad4f9787b55ef235e5c2548
Author: Aleksander Morgado <aleksander lanedo com>
Date: Mon Jan 17 16:51:20 2011 +0100
fixup
src/libtracker-miner/tracker-monitor.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index 2939710..520eac6 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -843,10 +843,6 @@ monitor_event_cb (GFileMonitor *file_monitor,
/* - When a G_FILE_MONITOR_EVENT_CREATED(A) is received,
* -- Add it to the cache, replacing any previous element
* (shouldn't be any)
- *
- * NOTE: We will be assuming that after a CREATED event there must
- * always be a CHANGES_DONE_HINT event. Thus, this CREATED event
- * will be set as non-expirable right now
*/
g_hash_table_replace (monitor->private->pre_update,
g_object_ref (file),
@@ -874,7 +870,7 @@ monitor_event_cb (GFileMonitor *file_monitor,
* remove it, as we know there will be a CHANGES_DONE_HINT afterwards
*/
g_hash_table_remove (monitor->private->pre_update, file);
- } else if (previous_update_event_data->event_type == G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED) {
+ } else if (previous_update_event_data->event_type == G_FILE_MONITOR_EVENT_CREATED) {
/* If we got a CHANGED event before the CREATED was expired,
* set the CREATED as not expirable, as we expect a CHANGES_DONE_HINT
* afterwards. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]