[tracker/rss-enclosures] libtracker-miner: avoid checking if removed files without mtime in the store
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] libtracker-miner: avoid checking if removed files without mtime in the store
- Date: Sat, 26 Jun 2010 23:19:11 +0000 (UTC)
commit 9b04aeb153e5b32f5bf60b5cbdb3300a9bb47487
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 28a397d..bee2d82 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2422,6 +2422,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.
@@ -2431,9 +2434,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]