time_t run_time = 0L;
time_t end_time = 0L;
+ CT_PUSH();
+
/*
* Don't do this if the site doesn't have it enabled.
*/
ft_index_message(ft_newmsgs[i], 1);
/* Check to see if we need to quit early */
- if (CtdlThreadCheckStop()) {
+ if (CtdlThreadCheckStop(CT)) {
lprintf(CTDL_DEBUG, "Indexer quitting early\n");
ft_newhighest = ft_newmsgs[i];
break;
void *indexer_thread(void *arg) {
struct CitContext indexerCC;
+ CT_PUSH();
+
lprintf(CTDL_DEBUG, "indexer_thread() initializing\n");
memset(&indexerCC, 0, sizeof(struct CitContext));
cdb_allocate_tsd();
- while (!CtdlThreadCheckStop()) {
+ while (!CtdlThreadCheckStop(CT)) {
do_fulltext_indexing();
CtdlThreadSleep(300);
}