bug fixed pooledStatementStat

This commit is contained in:
wenshao
2012-08-06 20:11:32 +08:00
parent bfda4f6790
commit b4b18ea360
3 changed files with 23 additions and 1 deletions
@@ -110,6 +110,7 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean {
Map.Entry<String, JdbcSqlStat> entry = iter.next();
JdbcSqlStat stat = entry.getValue();
if (stat.getExecuteCount() == 0 && stat.getRunningCount() == 0) {
stat.setRemoved(true);
iter.remove();
} else {
stat.reset();