From: Florian G. <re...@us...> - 2008-02-13 22:50:30
|
Update of /cvsroot/perfparse/_perfparse/libpp_mysql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26028/libpp_mysql Modified Files: dbms.c del_policy.c Log Message: fix install issues phpui (thanks to Sabrina Kavanaugh). Make cleanup more friendly. Index: dbms.c =================================================================== RCS file: /cvsroot/perfparse/_perfparse/libpp_mysql/dbms.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** dbms.c 15 Dec 2007 23:30:56 -0000 1.10 --- dbms.c 13 Feb 2008 22:50:32 -0000 1.11 *************** *** 109,113 **** freeResult(); ! if (mysql_query(&db_mysql, sql)) sql_failure(file, line, sql, mysql_error(&db_mysql)); --- 109,113 ---- freeResult(); ! if(mysql_query(&db_mysql, sql)) sql_failure(file, line, sql, mysql_error(&db_mysql)); Index: del_policy.c =================================================================== RCS file: /cvsroot/perfparse/_perfparse/libpp_mysql/del_policy.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** del_policy.c 3 Jan 2008 22:04:44 -0000 1.9 --- del_policy.c 13 Feb 2008 22:50:32 -0000 1.10 *************** *** 463,466 **** --- 463,467 ---- time_t dps=DEL_POLICY_UNDEFINED; time_t t=time(NULL); + time_t t0=time(NULL); // for pausing sometimes t_policyinfo *policyinfo=NULL; *************** *** 569,572 **** --- 570,578 ---- policyinfo->iMetricId,(int) dps); } + if(time(NULL)-t0 > 60) { + pp_lof_fl(LOG_DEBUG,_("wait 5 sec. to let other transactions run.\n")); + sleep(5); + t0=time(NULL); + } query(s_SQL->str); } |