X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fdatabase.c;h=dbcccf5b16b1a51ce3b7c17136d08f3f849022f7;hb=30a4090b04dff1084df3789efe78afd1e2bf6d90;hp=0d905db37118eb526495687525773a86f70dea42;hpb=c5ecaf518403e105dc729a12a51553dcd0b05397;p=citadel.git diff --git a/citadel/database.c b/citadel/database.c index 0d905db37..dbcccf5b1 100644 --- a/citadel/database.c +++ b/citadel/database.c @@ -1,7 +1,7 @@ /* * This is a data store backend for the Citadel server which uses Berkeley DB. * - * Copyright (c) 1987-2015 by the citadel.org team + * Copyright (c) 1987-2012 by the citadel.org team * * This program is open source software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 3. @@ -50,7 +50,6 @@ #include "ctdl_module.h" #include "control.h" #include "citserver.h" -#include "config.h" static DB *dbp[MAXCDB]; /* One DB handle for each Citadel database */ @@ -224,7 +223,7 @@ void cdb_checkpoint(void) } /* After a successful checkpoint, we can cull the unused logs */ - if (CtdlGetConfigInt("c_auto_cull")) { + if (config.c_auto_cull) { cdb_cull_logs(); } } @@ -936,8 +935,10 @@ time_t CheckIfAlreadySeen(const char *Facility, else { if (cdbut) cdb_free(cdbut); - + SEENM_syslog(LOG_DEBUG, "not Found"); + if (cType == eCheckUpdate) + return 0; } if (cType == eCheckExist)