Show
Ignore:
Timestamp:
08/21/08 18:10:40 (5 months ago)
Author:
rbertholon
Message:

beginning of purge module

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/centstorage/modules/recup_perf_datas/insertValInDataBase.c

    r6209 r6244  
    6868extern void     *db_connection; 
    6969extern int      serverFailure; 
     70extern pthread_mutex_t  Access_DB; 
    7071 
    7172#ifdef  USE_MYSQL 
     
    9495  int           i, count; 
    9596  char          nbr[11]; 
    96  
    97   //  serverFailure = 0; 
     97  unsigned char lock; 
     98 
    9899  sprintf(client->cmd, "OK%d\n", client->nb_lines); 
     100 
     101  LOCK_MUTEX(&mutex); 
     102  lock = conf->dbLock; 
     103  UNLOCK_MUTEX(&mutex); 
    99104 
    100105  if (timeout && timeout < time(NULL))