/*
- * $Id$
- *
* checkpointing module for the database
*
* Copyright (c) 1987-2009 by the citadel.org team
#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;
}
CtdlThreadCreate ("checkpoint", CTDLTHREAD_BIGSTACK, checkpoint_thread, NULL);
}
/* return our Subversion id for the Log */
- return "$Id$";
+ return "checkpoint";
}