Experiment with DB->compact() to reduce the size of database files on disk when possible.
[citadel.git] / citadel / modules / expire / serv_expire.c
index 5fce934737d97e68d9ff0f5ef80573b07e5f0fb6..7fd28e6b4a699217d90d094fc8f8ee6ac9866ee1 100644 (file)
@@ -905,6 +905,13 @@ void purge_databases(void)
                syslog(LOG_NOTICE, "Processed %d message reference count adjustments.", retval);
        }
 
+       // Enable this after we've tested it and make it a site-configurable option.
+       // This will allow the database files to shrink when they can.
+       // if (!server_shutting_down)
+       // {
+               // cdb_compact();
+       // }
+
        if (!server_shutting_down)
        {
                syslog(LOG_INFO, "Auto-purger: finished.");