]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/modules/fulltext/serv_fulltext.c
CtdlForEachMessage() don't process message 0
[citadel.git] / citadel / server / modules / fulltext / serv_fulltext.c
index b80ade388ad29a4594298a2ba7d153cc224e0293..4f04baad649f300a9fca3d1b4d5f331b4171f480 100644 (file)
@@ -60,6 +60,7 @@ void ft_flush_cache(void) {
        int i;
        time_t last_update = 0;
 
+       cdb_begin_transaction();
        for (i=0; i<65536; ++i) {
                if ((time(NULL) - last_update) >= 10) {
                        syslog(LOG_INFO, "fulltext: flushing index cache to disk (%d%% complete)", (i * 100 / 65536));
@@ -72,6 +73,7 @@ void ft_flush_cache(void) {
                        ftc_msgs[i] = NULL;
                }
        }
+       cdb_end_transaction();
        syslog(LOG_INFO, "fulltext: flushed index cache to disk (100%% complete)");
 }