From: Art Cancro Date: Wed, 29 Apr 2015 15:04:39 +0000 (-0400) Subject: Converted databasesc to the new config format X-Git-Tag: Release_902~167^2~25 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=c5ecaf518403e105dc729a12a51553dcd0b05397 Converted databasesc to the new config format --- diff --git a/citadel/database.c b/citadel/database.c index e89783f69..0d905db37 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-2012 by the citadel.org team + * Copyright (c) 1987-2015 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,6 +50,7 @@ #include "ctdl_module.h" #include "control.h" #include "citserver.h" +#include "config.h" static DB *dbp[MAXCDB]; /* One DB handle for each Citadel database */ @@ -223,7 +224,7 @@ void cdb_checkpoint(void) } /* After a successful checkpoint, we can cull the unused logs */ - if (config.c_auto_cull) { + if (CtdlGetConfigInt("c_auto_cull")) { cdb_cull_logs(); } }