[tracker] Do not trigger crawling under any circumstance if EnableIndexing is false.
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker] Do not trigger crawling under any circumstance if EnableIndexing is false.
- Date: Fri, 24 Apr 2009 08:43:27 -0400 (EDT)
commit c8cd63912d9f06054e6b4defc513370a98b36010
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 dbd7b9a..f503ffd 100644
--- a/src/trackerd/tracker-processor.c
+++ b/src/trackerd/tracker-processor.c
@@ -1029,6 +1029,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]