[tracker/threaded-extractor: 8/15] tracker-miner-fs: Don't remove item from queue until it's been processed



commit ad2a83334129a2896906eeee15044a8ea6dea0a2
Author: Carlos Garnacho <carlos lanedo com>
Date:   Tue Jun 21 17:53:50 2011 +0200

    tracker-miner-fs: Don't remove item from queue until it's been processed
    
    Mostly to keep consistency.

 src/miners/fs/tracker-miner-files.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 56776fe..d7b8606 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -2038,6 +2038,8 @@ extractor_get_failsafe_metadata_cb (GObject      *object,
 	tracker_miner_fs_file_notify (TRACKER_MINER_FS (miner), data->file, NULL);
 	process_file_data_free (data);
 
+	priv->failed_extraction_queue = g_list_remove (priv->failed_extraction_queue, data);
+
 	/* Get on to the next failed extraction, or resume miner */
 	extractor_process_failsafe (miner);
 }
@@ -2058,7 +2060,6 @@ extractor_process_failsafe (TrackerMinerFiles *miner)
 		gchar *uri;
 
 		data = priv->failed_extraction_queue->data;
-		priv->failed_extraction_queue = g_list_remove (priv->failed_extraction_queue, data);
 
 		uri = g_file_get_uri (data->file);
 		g_message ("Performing failsafe extraction on '%s'", uri);



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