[tracker/extraction-improvements] 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] tracker-miner-fs: Don't remove item from queue until it's been processed
- Date: Tue, 21 Jun 2011 15:59:56 +0000 (UTC)
commit 159ef229f28036d9f3e83491aa102f9bd62f560d
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 9cd5a90..41756f4 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -2037,6 +2037,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);
}
@@ -2057,7 +2059,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]