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));
ftc_msgs[i] = NULL;
}
}
+ cdb_end_transaction();
syslog(LOG_INFO, "fulltext: flushed index cache to disk (100%% complete)");
}