* Automatic deletion of committed database logs is now a site-definable
[citadel.git] / citadel / database_sleepycat.c
index 1e4251bb726dd2dcc9e176dfdcab6e44858a932a..a108e1fe76c92b8f1e8c4288b049e06a345e64e4 100644 (file)
@@ -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();
+       }
 }