|
@@ -458,7 +458,7 @@ int check_handle(db_func_t * dbf, db1_con_t * dbh, ul_db_handle_t * handle){
|
|
} else if((handle->db[i].status == DB_ON) && handle->db[i].dbh) {
|
|
} else if((handle->db[i].status == DB_ON) && handle->db[i].dbh) {
|
|
if((handle->db[i].failover_time < (time(NULL) - expire_time)) && (handle->db[i].failover_time != UL_DB_ZERO_TIME)){
|
|
if((handle->db[i].failover_time < (time(NULL) - expire_time)) && (handle->db[i].failover_time != UL_DB_ZERO_TIME)){
|
|
LM_ERR("%s: failover_time: %ld, now: %ld, delta: %ld, now going to reset failover time\n", __FUNCTION__,
|
|
LM_ERR("%s: failover_time: %ld, now: %ld, delta: %ld, now going to reset failover time\n", __FUNCTION__,
|
|
- handle->db[i].failover_time, time(NULL), (time(NULL) - handle->db[i].failover_time));
|
|
|
|
|
|
+ (long int)handle->db[i].failover_time, (long int)time(NULL), (long int)(time(NULL) - handle->db[i].failover_time));
|
|
if(db_reset_failover_time(handle, handle->db[i].no) < 0) {
|
|
if(db_reset_failover_time(handle, handle->db[i].no) < 0) {
|
|
LM_ERR("could not reset failover time for id %i, db %i.\n",
|
|
LM_ERR("could not reset failover time for id %i, db %i.\n",
|
|
handle->id, handle->db[i].no);
|
|
handle->id, handle->db[i].no);
|