[tracker/extraction-improvements: 8/9] tracker-miner-fs: Don't remove item from queue until it's been processed
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/extraction-improvements: 8/9] tracker-miner-fs: Don't remove item from queue until it's been processed
- Date: Fri, 24 Jun 2011 13:17:20 +0000 (UTC)
commit def11b2cd3f03b177c4ff3ac02bf51f669f31b5b
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]