]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/modules/fulltext/serv_fulltext.h
fulltext: after the indexer runs for 60 seconds (tunable), yield the thread
[citadel.git] / citadel / server / modules / fulltext / serv_fulltext.h
index e96a8f60c6945b0ffabb180c77e72233e1aa143d..32f5d5f996870bc8c4a0d9fa26eaed2cc6400de0 100644 (file)
@@ -5,3 +5,7 @@
 
 void ft_index_message(long msgnum, int op);
 Array *CtdlFullTextSearch(const char *search_string);
+
+// After this many seconds, the indexer will stop and yield the housekeeping thread.
+// On the next cycle it will run again and pick up where it left off.
+#define        MAXIMUM_INDEXER_RUN_TIME 60