[tracker/tracker-0.6] Do not trigger crawling under any circumstance if EnableIndexing is false.



commit 4581372459a09fb2ce5030124265c61b11eb5f84
Author: Chris Coulson <chrisccoulson googlemail com>
Date:   Wed Apr 22 11:56:46 2009 +0200

    Do not trigger crawling under any circumstance if EnableIndexing is false.
---
 src/trackerd/tracker-processor.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/trackerd/tracker-processor.c b/src/trackerd/tracker-processor.c
index 4b4b131..3d5a959 100644
--- a/src/trackerd/tracker-processor.c
+++ b/src/trackerd/tracker-processor.c
@@ -1031,6 +1031,13 @@ process_module_next (TrackerProcessor *processor)
 	const gchar *module_name;
 	gboolean     is_removable_media;
 
+	if (tracker_status_get_is_readonly ()) {
+		/* Block any request to process
+		 * modules if indexing is not enabled
+		 */
+		return;
+	}
+
 	/* Don't recursively iterate the modules if this function is
 	 * called, check first.
 	 */



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