[tracker/tracker-0.8] libtracker-miner: avoid checking if removed files without mtime in the store



commit c492007bb66ffe13cc14af63fdd2fb71f81b3f21
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Mon Jun 14 11:04:19 2010 +0200

    libtracker-miner: avoid checking if removed files without mtime in the store

 src/libtracker-miner/tracker-miner-fs.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 55af3e8..4a3683f 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2379,6 +2379,9 @@ should_change_index_for_file (TrackerMinerFS *fs,
 	 */
 	ensure_mtime_cache (fs, file);
 
+	/* Remove the file from the list of files to be checked if removed */
+	g_hash_table_remove (fs->private->check_removed, file);
+
 	/* If the file is NOT found in the cache, it means its a new
 	 * file the store doesn't know about, so just report it to be
 	 * re-indexed.
@@ -2388,9 +2391,6 @@ should_change_index_for_file (TrackerMinerFS *fs,
 		return TRUE;
 	}
 
-	/* Remove the file from the list of files to be checked if removed */
-	g_hash_table_remove (fs->private->check_removed, file);
-
 	file_info = g_file_query_info (file,
 	                               G_FILE_ATTRIBUTE_TIME_MODIFIED,
 	                               G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,



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