database.c: print log messages for file defragmentations
authorArt Cancro <ajc@citadel.org>
Thu, 20 May 1999 21:10:40 +0000 (21:10 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 20 May 1999 21:10:40 +0000 (21:10 +0000)
citadel/ChangeLog
citadel/database.c

index 13fb792d335bf7b45d3b7c3896807426eb27d350..d34ed338293f688e7291cfaa4c7abbcfe41a0d42 100644 (file)
@@ -1,5 +1,6 @@
 Wed May 19 19:30:28 EDT 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * commands.c, commands.h, routines.c: began color scheme changes
+       * database.c: print log messages for file defragmentations
 
 1999-05-15 Nathan Bryant <bryant@cs.usm.maine.edu>
        * configure.in: Added untested support for BSDI 4.x.
index ed7dce730f9a1a65e2abf6dd17d5a4a768325fe4..4dcda3e30ba1321eeb9cdf0640671e186a5babd5 100644 (file)
@@ -55,6 +55,7 @@ datum dtkey[MAXKEYS];
 void defrag_databases(void) {
 
        /* defrag the message base */
+       lprintf(7, "Defragmenting message base\n");
        begin_critical_section(S_MSGMAIN);
        begin_critical_section(S_DATABASE);
        gdbm_reorganize(gdbms[CDB_MSGMAIN]);
@@ -62,6 +63,7 @@ void defrag_databases(void) {
        end_critical_section(S_MSGMAIN);
 
        /* defrag the user file, mailboxes, and user/room relationships */
+       lprintf(7, "Defragmenting user file\n");
        begin_critical_section(S_USERSUPP);
        begin_critical_section(S_DATABASE);
        gdbm_reorganize(gdbms[CDB_USERSUPP]);
@@ -70,6 +72,7 @@ void defrag_databases(void) {
        end_critical_section(S_USERSUPP);
 
        /* defrag the room files and message lists */
+       lprintf(7, "Defragmenting room files and message lists\n");
        begin_critical_section(S_QUICKROOM);
        begin_critical_section(S_DATABASE);
        gdbm_reorganize(gdbms[CDB_QUICKROOM]);
@@ -78,6 +81,7 @@ void defrag_databases(void) {
        end_critical_section(S_QUICKROOM);
 
        /* defrag the floor table */
+       lprintf(7, "Defragmenting floor table\n");
        begin_critical_section(S_FLOORTAB);
        begin_critical_section(S_DATABASE);
        gdbm_reorganize(gdbms[CDB_FLOORTAB]);