Now we name all the private contexts.
[citadel.git] / citadel / modules / fulltext / serv_fulltext.c
index 5147bad198aadbd11915991daaee3960f25fbe02..280c6ca1f1218fbf5ee600557879b6bd8c74f84d 100644 (file)
@@ -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();