[tracker/miner-fs-refactor: 56/74] libtracker-miner: Only append dirs to crawler processing on recursive dirs



commit f3e97db0b4dd1c4870c3892c57f12addbfe7c09f
Author: Carlos Garnacho <carlos lanedo com>
Date:   Mon Oct 3 13:40:27 2011 +0200

    libtracker-miner: Only append dirs to crawler processing on recursive dirs
    
    This saves some idle jumps when a directory is found on a non-recursive
    crawled dir.

 src/libtracker-miner/tracker-crawler.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-crawler.c b/src/libtracker-miner/tracker-crawler.c
index 943c9c8..89ec5ff 100644
--- a/src/libtracker-miner/tracker-crawler.c
+++ b/src/libtracker-miner/tracker-crawler.c
@@ -490,7 +490,8 @@ process_func (gpointer data)
 								  g_object_ref (child_data->child));
 			}
 
-			if (priv->is_running && child_node && child_data->is_dir) {
+			if (info->recurse && priv->is_running &&
+			    child_node && child_data->is_dir) {
 				DirectoryProcessingData *child_dir_data;
 
 				child_dir_data = directory_processing_data_new (child_node);



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