* database.c: removed some code that had been commented out for a long time
authorArt Cancro <ajc@citadel.org>
Sat, 27 Dec 2008 04:28:00 +0000 (04:28 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 27 Dec 2008 04:28:00 +0000 (04:28 +0000)
citadel/database.c
citadel/modules/calendar/serv_calendar.c

index 9aa870091d6f1dc4684e20617a9149823cff6305..87e7b2a5876276908a803739d772c5ff8d5cd35d 100644 (file)
@@ -78,7 +78,7 @@ void cdb_verbose_log(const DB_ENV *dbenv, const char *msg)
 /* Verbose logging callback */
 void cdb_verbose_err(const DB_ENV *dbenv, const char *errpfx, const char *msg)
 {
-       CtdlLogPrintf(CTDL_ALERT, "BDB: %s\n", msg);
+       CtdlLogPrintf(CTDL_ALERT, "DB: %s\n", msg);
 }
 
 
@@ -224,22 +224,11 @@ void cmd_cull(char *argbuf) {
 
 
 /*
- * Request a checkpoint of the database.
+ * Request a checkpoint of the database.  Called once per minute by the thread manager.
  */
 void cdb_checkpoint(void)
 {
        int ret;
-//     static time_t last_run = 0L;
-
-       /* Only do a checkpoint once per minute. */
-/*
- * Don't need this any more, since the thread that calls us sleeps for 60 seconds between calls
-       if ((time(NULL) - last_run) < 60L) {
-               return;
-       }
-       last_run = time(NULL);
-*/
 
        CtdlLogPrintf(CTDL_DEBUG, "-- db checkpoint --\n");
        ret = dbenv->txn_checkpoint(dbenv,
@@ -270,7 +259,7 @@ void open_databases(void)
 {
        int ret;
        int i;
-       char dbfilename[SIZ];
+       char dbfilename[32];
        u_int32_t flags = 0;
        int dbversion_major, dbversion_minor, dbversion_patch;
        int current_dbversion = 0;
index cfafb7f2828a67c47be14db2161fbcca6f203936..fe97f7812106963913a7d635d06baadbd8a147c1 100644 (file)
@@ -872,7 +872,7 @@ int ical_conflicts_phase6(struct icaltimetype t1start,
 {
        int conflict_reported = 0;
 
-       /* debugging cruft *
+       /* debugging cruft */
        time_t tt;
        tt = icaltime_as_timet(t1start);
        CtdlLogPrintf(CTDL_DEBUG, "PROPOSED START: %s", ctime(&tt));
@@ -882,7 +882,7 @@ int ical_conflicts_phase6(struct icaltimetype t1start,
        CtdlLogPrintf(CTDL_DEBUG, "EXISTING START: %s", ctime(&tt));
        tt = icaltime_as_timet(t2end);
        CtdlLogPrintf(CTDL_DEBUG, "  EXISTING END: %s", ctime(&tt));
-       * debugging cruft */
+       /* debugging cruft */
 
        /* compare and output */