X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcitserver.c;h=e79fc29dbfae7b8de124e2b0815a921071076903;hb=31083c21a8e384b70817ff1b32ae4f2007b19e60;hp=693357e3da999aca497d7309044ef92fde13e9d7;hpb=59815240abeaf32e1d7a79d277220f2592e468d7;p=citadel.git diff --git a/citadel/citserver.c b/citadel/citserver.c index 693357e3d..e79fc29db 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -40,6 +40,7 @@ struct CitContext *ContextList = NULL; int ScheduledShutdown = 0; +int do_defrag = 0; /* * Various things that need to be initialized at startup @@ -48,6 +49,9 @@ void master_startup(void) { lprintf(7, "Opening databases\n"); open_databases(); + if (do_defrag) + defrag_databases(); + lprintf(7, "Checking floor reference counts\n"); check_ref_counts();