[tracker/rss-enclosures] TrackerMinerFS: Disable crawling entirely if !initial_crawl.
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] TrackerMinerFS: Disable crawling entirely if !initial_crawl.
- Date: Wed, 24 Nov 2010 01:31:33 +0000 (UTC)
commit cc294921721c95c6f70881be573c3acd2eabcaea
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]