$Log$
+ Revision 573.140 2001/06/19 03:41:04 ajc
+ * Ooops... last_cull needs to be declared static
+
Revision 573.139 2001/06/19 03:33:19 ajc
* imap_fetch.c: download MIME parts without decoding first. We like that.
* database_sleepycat.c: added automatic culling of log files which have not
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
*/
static void cdb_checkpoint(void) {
int ret;
- time_t last_checkpoint = 0L;
+ static time_t last_cull = 0L;
ret = txn_checkpoint(dbenv,
MAX_CHECKPOINT_KBYTES,
/* Cull the logs if we haven't done so for 24 hours */
- if ((time(NULL) - last_checkpoint) > 86400L) {
- last_checkpoint = time(NULL);
+ if ((time(NULL) - last_cull) > 86400L) {
+ last_cull = time(NULL);
cdb_cull_logs();
}