[tracker/mounts-without-volumes: 15/23] libtracker-miner: avoid checking if removed files without mtime in the store
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/mounts-without-volumes: 15/23] libtracker-miner: avoid checking if removed files without mtime in the store
- Date: Tue, 15 Jun 2010 08:58:37 +0000 (UTC)
commit 1e9f92f762f4b92609989d0cb09dffc83e26ac01
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]