]> code.citadel.org Git - citadel.git/commitdiff
* Ooops... last_cull needs to be declared static
authorArt Cancro <ajc@citadel.org>
Tue, 19 Jun 2001 03:41:04 +0000 (03:41 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 19 Jun 2001 03:41:04 +0000 (03:41 +0000)
citadel/ChangeLog
citadel/database_sleepycat.c

index c2a1b74900a05113b14e94d3b519b4a560c0a5b2..d99d2ed4ef66858168a12c4770896ce642b21ce4 100644 (file)
@@ -1,4 +1,7 @@
  $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
@@ -2546,3 +2549,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
+
index be37b12690756e8e499b14088adfc538150764e1..f11f049b03e6fcade95bf87f81923b4365257caa 100644 (file)
@@ -197,7 +197,7 @@ void cdb_cull_logs(void) {
  */
 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,
@@ -210,8 +210,8 @@ static void cdb_checkpoint(void) {
 
 
        /* 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();
        }