Branch: Tag:

2006-06-01

2006-06-01 13:59:44 by Jonas Wallden <jonasw@roxen.com>

And now the correct diff is included...

Rev: server/modules/tags/insert_cached_href.pike:1.13

7:   //<locale-token project="mod_insert_cached_href">LOCALE</locale-token>   #define LOCALE(X,Y) _DEF_LOCALE("mod_insert_cached_href",X,Y)    - constant cvs_version = "$Id: insert_cached_href.pike,v 1.12 2006/06/01 13:58:42 jonasw Exp $"; + constant cvs_version = "$Id: insert_cached_href.pike,v 1.13 2006/06/01 13:59:44 jonasw Exp $";      constant thread_safe = 1;   constant module_type = MODULE_TAG;
81: Inside #if defined(THREADS)
     #ifdef THREADS    if (occasion == 2) -  bg_process->stop(); +  bg_process && bg_process->stop();       // Check whether setup is ok before scheduling background task    if (href_database) { -  if (href_database->ready_to_run()) +  if (href_database->ready_to_run()) {    bg_process =    roxen.BackgroundProcess(get_time_in_seconds(query("update-interval")),    href_database->update_db, 0); -  else +  } else {    report_error("Insert cached href: Failed to initialize SQL tables. "    "Permission error?\n");    } -  +  }   #endif   }   
100:    DWRITE("stop()");      #ifdef THREADS -  bg_process->stop(); +  bg_process && bg_process->stop();    bg_process = 0;    mutex_key = mutex->lock();   
529:    (recursion_depth >= query("recursion_limit")))    RXML.run_error("Too deep insert cached-href recursion.");    +  // Verify that database connection is working +  if (!href_database || !href_database->ready_to_run()) +  RXML.run_error("Insert cached href: Database connection not working. " +  "Permission problems?\n"); +     recursion_depth++;       if(args->nocache)