From 58e35fcc00984213d4ed8a29b618359097aba8c8 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 1 Sep 2023 15:55:20 +0000 Subject: [PATCH] fulltext: be smarter about exiting silently if there's nothing to do. --- citadel/server/modules/fulltext/serv_fulltext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/citadel/server/modules/fulltext/serv_fulltext.c b/citadel/server/modules/fulltext/serv_fulltext.c index ea374542e..3a1129f2e 100644 --- a/citadel/server/modules/fulltext/serv_fulltext.c +++ b/citadel/server/modules/fulltext/serv_fulltext.c @@ -195,8 +195,6 @@ void do_fulltext_indexing(void) { if (!CtdlGetConfigInt("c_enable_fulltext")) { return; } - syslog(LOG_DEBUG, "fulltext: indexing started"); - // If we've switched wordbreaker modules, burn the index and start over. begin_critical_section(S_CONTROL); if (CtdlGetConfigInt("MM_fulltext_wordbreaker") != FT_WORDBREAKER_ID) { @@ -216,6 +214,8 @@ void do_fulltext_indexing(void) { highest_msg_already_indexed = CtdlGetConfigLong("MMfulltext"); highest_msg_to_be_indexed = CtdlGetConfigLong("MMhighest"); + syslog(LOG_DEBUG, "fulltext: indexing started. msgs %ld--%ld", highest_msg_already_indexed, highest_msg_to_be_indexed); + messages_to_be_indexed = array_new(sizeof(long)); // Now go through each room and find messages to index. -- 2.39.2