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



commit 22dffbab10802cced024f9133f41a16131af89c8
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 c484600..1e08d94 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]