Don't automatically defrag databases on shutdown
authorArt Cancro <ajc@citadel.org>
Mon, 5 Oct 1998 00:22:49 +0000 (00:22 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 5 Oct 1998 00:22:49 +0000 (00:22 +0000)
citadel/database.c

index 8f3c75e6702850d0716e2791976726fdd842ce60..179ff82f64fb06d090df27f4d88a1f08e1d9576b 100644 (file)
@@ -140,7 +140,10 @@ void open_databases(void) {
 void close_databases(void) {
        int a;
 
-       defrag_databases();
+       /* Hmm... we should decide when would be a good time to defrag.
+        * Server shutdowns might be an opportune time.
+       defrag_databases(); */
+
        for (a=0; a<MAXCDB; ++a) {
                lprintf(7, "Closing database %d\n", a);
                gdbm_close(gdbms[a]);