X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fcheckpoint%2Fserv_checkpoint.c;h=32bfad00bb438526597a59b7acfb9bab7bedaf69;hb=5abf3d0c3343809374a116cbe23c808a81a780c4;hp=98c685856e056fce248f8d0bcf3c6207189a2e3f;hpb=091d26d0ce0524e664020f5d33b13bc42e6a88e0;p=citadel.git diff --git a/citadel/modules/checkpoint/serv_checkpoint.c b/citadel/modules/checkpoint/serv_checkpoint.c index 98c685856..32bfad00b 100644 --- a/citadel/modules/checkpoint/serv_checkpoint.c +++ b/citadel/modules/checkpoint/serv_checkpoint.c @@ -44,7 +44,7 @@ void *checkpoint_thread(void *arg) { struct CitContext checkpointCC; - CT_PUSH(); + CtdlThreadAllocTSD(); CtdlLogPrintf(CTDL_DEBUG, "checkpoint_thread() initializing\n"); @@ -53,9 +53,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); }