X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fdatabase_sleepycat.c;h=a108e1fe76c92b8f1e8c4288b049e06a345e64e4;hb=5aaf345dba40e687f794956a981279becf0eed48;hp=1e4251bb726dd2dcc9e176dfdcab6e44858a932a;hpb=49cc747de57875d0fc835de7623835e46f7146f4;p=citadel.git diff --git a/citadel/database_sleepycat.c b/citadel/database_sleepycat.c index 1e4251bb7..a108e1fe7 100644 --- a/citadel/database_sleepycat.c +++ b/citadel/database_sleepycat.c @@ -282,7 +282,9 @@ static void cdb_checkpoint(void) } /* After a successful checkpoint, we can cull the unused logs */ - cdb_cull_logs(); + if (config.c_auto_cull) { + cdb_cull_logs(); + } }