]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/checkpoint/serv_checkpoint.c
More removal of $Id$ tags
[citadel.git] / citadel / modules / checkpoint / serv_checkpoint.c
index f94a41dc341993e0c36b543835953e6f9fc77895..0b36b086cd6c9025e0715a4f5ed40b4e25c55f8a 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * checkpointing module for the database
  *
  * Copyright (c) 1987-2009 by the citadel.org team
@@ -56,6 +54,7 @@
 #include "threads.h"
 
 #include "ctdl_module.h"
+#include "context.h"
  
 /*
  * Main loop for the checkpoint thread.
 void *checkpoint_thread(void *arg) {
        struct CitContext checkpointCC;
 
-       CtdlLogPrintf(CTDL_DEBUG, "checkpoint_thread() initializing\n");
 
        CtdlFillSystemContext(&checkpointCC, "checkpoint");
        citthread_setspecific(MyConKey, (void *)&checkpointCC );
 
+       CtdlLogPrintf(CTDL_DEBUG, "checkpoint_thread() initializing\n");
        while (!CtdlThreadCheckStop()) {
                cdb_checkpoint();
                CtdlThreadSleep(60);
        }
 
        CtdlLogPrintf(CTDL_DEBUG, "checkpoint_thread() exiting\n");
+       CtdlClearSystemContext();
        return NULL;
 }
 
@@ -84,5 +84,5 @@ CTDL_MODULE_INIT(checkpoint) {
                CtdlThreadCreate ("checkpoint", CTDLTHREAD_BIGSTACK, checkpoint_thread, NULL);
        }
        /* return our Subversion id for the Log */
-       return "$Id$";
+       return "checkpoint";
 }