summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e96b8a7)
CitContext. Sharing the masterCC with housekeeping threads could be
causing data corruption issues.
static time_t last_purge = 0;
time_t now;
struct tm tm;
static time_t last_purge = 0;
time_t now;
struct tm tm;
+ struct CitContext purgerCC;
+
+ lprintf(CTDL_DEBUG, "indexer_thread() initializing\n");
+
+ memset(&purgerCC, 0, sizeof(struct CitContext));
+ purgerCC.internal_pgm = 1;
+ purgerCC.cs_pid = 0;
+ pthread_setspecific(MyConKey, (void *)&purgerCC );
while (!CtdlThreadCheckStop()) {
/* Do the auto-purge if the current hour equals the purge hour,
while (!CtdlThreadCheckStop()) {
/* Do the auto-purge if the current hour equals the purge hour,