* There is now a dedicated thread for doing database checkpoints.
[citadel.git] / citadel / citserver.c
index 1e32ea54b5ceca67679346b84a3bd6d76b30c88b..85f593641318e9bfdc56e7f1c72cf0ea5401ce6d 100644 (file)
@@ -152,6 +152,10 @@ void master_cleanup(int exitcode) {
        lprintf(CTDL_INFO, "Waiting for the indexer thread to shut down\n");
        pthread_join(indexer_thread_tid, NULL);
 
+       /* Shut down the checkpoint thread */
+       lprintf(CTDL_INFO, "Waiting for the checkpoint thread to shut down\n");
+       pthread_join(checkpoint_thread_tid, NULL);
+
        /* Close databases */
        lprintf(CTDL_INFO, "Closing databases\n");
        close_databases();