[tracker] TrackerMinerFS: Do not check store for ignored directories.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] TrackerMinerFS: Do not check store for ignored directories.
- Date: Mon, 29 Mar 2010 16:07:07 +0000 (UTC)
commit af8e0dd20fcc4b1905956eb974573b80d52f774d
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Mar 29 17:54:10 2010 +0200
TrackerMinerFS: Do not check store for ignored directories.
Suggested by Zhenqiang Chen. Now items like hidden dirs in $HOME shouldn't
be checked in tracker-store.
src/libtracker-miner/tracker-miner-fs.c | 25 ++++++++++++++-----------
1 files changed, 14 insertions(+), 11 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index e77ce67..663d93d 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2333,21 +2333,24 @@ crawler_check_directory_cb (TrackerCrawler *crawler,
gboolean should_check, should_change_index;
should_check = should_check_file (fs, file, TRUE);
- should_change_index = should_change_index_for_file (fs, file);
-
- if (!should_change_index) {
- /* Mark the file as ignored, we still want the crawler
- * to iterate over its contents, but the directory hasn't
- * actually changed, hence this flag.
- */
- g_object_set_qdata (G_OBJECT (file),
- fs->private->quark_ignore_file,
- GINT_TO_POINTER (TRUE));
- }
if (!should_check) {
/* Remove monitors if any */
tracker_monitor_remove (fs->private->monitor, file);
+ } else {
+ gboolean should_change_index;
+
+ should_change_index = should_change_index_for_file (fs, file);
+
+ if (!should_change_index) {
+ /* Mark the file as ignored, we still want the crawler
+ * to iterate over its contents, but the directory hasn't
+ * actually changed, hence this flag.
+ */
+ g_object_set_qdata (G_OBJECT (file),
+ fs->private->quark_ignore_file,
+ GINT_TO_POINTER (TRUE));
+ }
}
/* We _HAVE_ to check ALL directories because mtime updates
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]