X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Ffulltext%2Fserv_fulltext.c;h=f6266e9c4095723b9dded129406a1387c639c12b;hb=28304ba812b3f1b39086c362fb8a0e8a78964f65;hp=1e461a152785676bc3c2539bb32d188b942db066;hpb=3f442f221a69097588beb7be8bdbffa0bbcd5448;p=citadel.git diff --git a/citadel/modules/fulltext/serv_fulltext.c b/citadel/modules/fulltext/serv_fulltext.c index 1e461a152..f6266e9c4 100644 --- a/citadel/modules/fulltext/serv_fulltext.c +++ b/citadel/modules/fulltext/serv_fulltext.c @@ -374,10 +374,10 @@ void do_fulltext_indexing(void) { void *indexer_thread(void *arg) { struct CitContext indexerCC; - CtdlLogPrintf(CTDL_DEBUG, "indexer_thread() initializing\n"); CtdlFillSystemContext(&indexerCC, "indexer"); citthread_setspecific(MyConKey, (void *)&indexerCC ); + CtdlLogPrintf(CTDL_DEBUG, "indexer_thread() initializing\n"); while (!CtdlThreadCheckStop()) { do_fulltext_indexing(); @@ -385,6 +385,7 @@ void *indexer_thread(void *arg) { } CtdlLogPrintf(CTDL_DEBUG, "indexer_thread() exiting\n"); + CtdlClearSystemContext(); return NULL; }