X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Ffulltext%2Fserv_fulltext.c;h=8e668778817a405208c55cc6ab3ffd7e34f217ad;hb=2a612325dc9205b7fa7c9df2cf3e063a79c22056;hp=cc3906867981e6154ec43d1fc93b586cec0f212d;hpb=932aa75b3b39620fbde008af413e3cace3420af8;p=citadel.git diff --git a/citadel/modules/fulltext/serv_fulltext.c b/citadel/modules/fulltext/serv_fulltext.c index cc3906867..8e6687788 100644 --- a/citadel/modules/fulltext/serv_fulltext.c +++ b/citadel/modules/fulltext/serv_fulltext.c @@ -142,9 +142,8 @@ void ft_index_message(long msgnum, int op) { CtdlFreeMessage(msg); msgtext = CC->redirect_buffer; CC->redirect_buffer = NULL; - syslog(LOG_DEBUG, "Wordbreaking message %ld...", msgnum); - if ((msgtext == NULL) || (StrLength(msgtext) == 0)) { - syslog(LOG_ALERT, "This message has a zero length. Probable data corruption."); + if (msgtext != NULL) { + syslog(LOG_DEBUG, "Wordbreaking message %ld (%d bytes)", msgnum, StrLength(msgtext)); } txt = SmashStrBuf(&msgtext); wordbreaker(txt, &num_tokens, &tokens); @@ -507,7 +506,7 @@ CTDL_MODULE_INIT(fulltext) CtdlRegisterDeleteHook(ft_delete_remove); CtdlRegisterSearchFuncHook(ft_search, "fulltext"); CtdlRegisterCleanupHook(noise_word_cleanup); - CtdlRegisterSessionHook(do_fulltext_indexing, EVT_TIMER); + CtdlRegisterSessionHook(do_fulltext_indexing, EVT_TIMER, PRIO_CLEANUP + 300); } /* return our module name for the log */ return "fulltext";