]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/checkpoint/serv_checkpoint.c
Hunting a bug in scheduled threads that caused a segflt. Got it and
[citadel.git] / citadel / modules / checkpoint / serv_checkpoint.c
index 98c685856e056fce248f8d0bcf3c6207189a2e3f..1d48ff5e05c5f7f5a2bcb816b12cb9e04a3b7bc3 100644 (file)
@@ -44,8 +44,6 @@
 void *checkpoint_thread(void *arg) {
        struct CitContext checkpointCC;
 
-       CT_PUSH();
-       
        CtdlLogPrintf(CTDL_DEBUG, "checkpoint_thread() initializing\n");
 
        memset(&checkpointCC, 0, sizeof(struct CitContext));
@@ -53,9 +51,7 @@ void *checkpoint_thread(void *arg) {
        checkpointCC.cs_pid = 0;
        pthread_setspecific(MyConKey, (void *)&checkpointCC );
 
-       cdb_allocate_tsd();
-
-       while (!CtdlThreadCheckStop(CT)) {
+       while (!CtdlThreadCheckStop()) {
                cdb_checkpoint();
                CtdlThreadSleep(60);
        }