mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for updateCount
This commit is contained in:
@@ -230,7 +230,10 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean {
|
||||
}
|
||||
|
||||
public void addUpdateCount(int delta) {
|
||||
this.updateCount.addAndGet(delta);
|
||||
if (delta > 0) {
|
||||
this.updateCount.addAndGet(delta);
|
||||
}
|
||||
|
||||
this.updateCountHistogram.recode(delta);
|
||||
this.fetchRowCountHistogram.recode(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user