a cache flush to disk. Currently 2500.
+Sat Oct 22 22:55:49 EDT 2005 ajc
+* Set a maximum number of messages which may be indexed before we force
+ a cache flush to disk. Currently 2500.
+
Sat Oct 22 00:48:47 EDT 2005 ajc
* msgbase.c: allow multipart/alternative part-swapping only at the top
level, because if we recursed into another one then it's going to stomp
break;
}
+ /* Check to see if we have to maybe flush to disk */
+ if (i >= FT_MAX_CACHE) {
+ lprintf(CTDL_DEBUG, "Time to flush.\n");
+ ft_newhighest = ft_newmsgs[i];
+ break;
+ }
+
}
free(ft_newmsgs);
#define CTDL_CER_PATH CTDL_CRYPTO_DIR "/citadel.cer"
#define THREADSTACKSIZE 1048576
+
+/*
+ * How many messages may the full text indexer scan before flushing its
+ * tables to disk?
+ */
+#define FT_MAX_CACHE 2500
+#