X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Ffulltext%2Fserv_fulltext.c;h=280c6ca1f1218fbf5ee600557879b6bd8c74f84d;hb=e739cb7572012e2a0a9b820757f4e2adf7b37a63;hp=5147bad198aadbd11915991daaee3960f25fbe02;hpb=60617b628daa3da5c4d8343d7623e70666ff4a3e;p=citadel.git diff --git a/citadel/modules/fulltext/serv_fulltext.c b/citadel/modules/fulltext/serv_fulltext.c index 5147bad19..280c6ca1f 100644 --- a/citadel/modules/fulltext/serv_fulltext.c +++ b/citadel/modules/fulltext/serv_fulltext.c @@ -348,10 +348,8 @@ void *indexer_thread(void *arg) { CtdlLogPrintf(CTDL_DEBUG, "indexer_thread() initializing\n"); - memset(&indexerCC, 0, sizeof(struct CitContext)); - indexerCC.internal_pgm = 1; - indexerCC.cs_pid = 0; - pthread_setspecific(MyConKey, (void *)&indexerCC ); + CtdlFillPrivateContext(&indexerCC, "indexer"); + citthread_setspecific(MyConKey, (void *)&indexerCC ); while (!CtdlThreadCheckStop()) { do_fulltext_indexing();