[tracker/harmattan-pre-signal-updates: 1224/1380] TrackerMinerFS: Disable crawling entirely if !initial_crawl.
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/harmattan-pre-signal-updates: 1224/1380] TrackerMinerFS: Disable crawling entirely if !initial_crawl.
- Date: Wed, 22 Sep 2010 15:37:09 +0000 (UTC)
commit 4409d881cf51811c2138fc8570a6e27cdd46b513
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]