mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add stat CachedPreparedStatementMissCount
This commit is contained in:
@@ -49,6 +49,8 @@ public class PreparedStatementPool {
|
||||
|
||||
if (holder != null) {
|
||||
holder.incrementReusedCount();
|
||||
} else {
|
||||
dataSource.incrementCachedPreparedStatementMissCount();
|
||||
}
|
||||
|
||||
return holder;
|
||||
@@ -90,6 +92,7 @@ public class PreparedStatementPool {
|
||||
if (remove) {
|
||||
dataSource.closePreapredStatement(eldest.getValue());
|
||||
dataSource.decrementCachedPreparedStatementCount();
|
||||
dataSource.incrementCachedPreparedStatementDeleteCount();
|
||||
}
|
||||
|
||||
return remove;
|
||||
|
||||
Reference in New Issue
Block a user