[tracker/libtracker-miner] TrackerCrawler: Don't starve file crawling if there are higher prio sources.



commit 2944e86fe0311d5f03a07f658371a571cc04c2c9
Author: Carlos Garnacho <carlos lanedo com>
Date:   Wed Sep 2 16:49:18 2009 +0200

    TrackerCrawler: Don't starve file crawling if there are higher prio sources.
    
    A higher priority source running that often is worrying enough to deserve
    a close look, this is a quick fix so the crawler doesn't get stuck.

 src/libtracker-miner/tracker-crawler.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-crawler.c b/src/libtracker-miner/tracker-crawler.c
index 8496f19..f69c366 100644
--- a/src/libtracker-miner/tracker-crawler.c
+++ b/src/libtracker-miner/tracker-crawler.c
@@ -536,7 +536,7 @@ file_enumerate_next (GFileEnumerator *enumerator,
 {
 	g_file_enumerator_next_files_async (enumerator,
 					    FILES_GROUP_SIZE,
-					    G_PRIORITY_LOW,
+					    G_PRIORITY_DEFAULT,
 					    ed->crawler->private->cancellable,
 					    file_enumerate_next_cb,
 					    ed);



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