[tracker] TrackerMinerFS: Disable crawling entirely if !initial_crawl.



commit 5268b075b727146d6bcbe03565c1899575ffb11d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Aug 31 12:30:31 2010 +0200

    TrackerMinerFS: Disable crawling entirely if !initial_crawl.

 src/libtracker-miner/tracker-miner-fs.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index a593885..614a556 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -3306,6 +3306,12 @@ crawl_directories_cb (gpointer user_data)
 static void
 crawl_directories_start (TrackerMinerFS *fs)
 {
+	if (!fs->private->initial_crawling) {
+		/* Do not perform initial crawling */
+		g_message ("Crawling is disabled, waiting for DBus events");
+		return;
+	}
+
 	if (fs->private->crawl_directories_id != 0 ||
 	    fs->private->current_directory) {
 		/* Processing ALREADY going on */



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