[tracker/no-mtime-checks-on-start] tracker-miner-fs: Force mtime check if process was stopped while miners paused



commit f658ea5e017e179f174e8a0f341d362ba976ff72
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Thu Feb 3 11:48:09 2011 +0100

    tracker-miner-fs: Force mtime check if process was stopped while miners paused

 src/miners/fs/tracker-main.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index 0cd7700..29a3826 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -213,7 +213,7 @@ should_crawl (TrackerConfig *config,
 		return TRUE;
 	} else {
 		guint64 then, now;
-		
+
 		then = tracker_db_manager_get_last_crawl_done ();
 
 		if (then < 1) {
@@ -686,8 +686,11 @@ main (gint argc, gchar *argv[])
 	 *
 	 * 1. Still have files to process in our queues.
 	 * 2. We crash (out of our control usually anyway).
+	 * 3. At least one of the miners is PAUSED.
 	 */
-	if (!tracker_miner_fs_has_items_to_process (TRACKER_MINER_FS (miner_files))) {
+	if (!tracker_miner_fs_has_items_to_process (TRACKER_MINER_FS (miner_files)) &&
+	    !tracker_miner_is_paused (miner_applications) &&
+	    !tracker_miner_is_paused (miner_files)) {
 		tracker_db_manager_set_need_mtime_check (FALSE);
 	}
 



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