mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed
This commit is contained in:
@@ -47,7 +47,7 @@ public class JdbcDataSourceStat implements JdbcDataSourceStatMBean {
|
||||
private final LinkedHashMap<String, JdbcSqlStat> sqlStatMap = new LinkedHashMap<String, JdbcSqlStat>(
|
||||
maxSize,
|
||||
0.75f,
|
||||
true);
|
||||
false);
|
||||
|
||||
// private final ConcurrentMap<String, JdbcSqlStat> sqlStatMap = new ConcurrentHashMap<String, JdbcSqlStat>();
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ public abstract class WallProvider {
|
||||
lock.writeLock().lock();
|
||||
try {
|
||||
if (whiteList == null) {
|
||||
whiteList = new LinkedHashMap<String, Object>(whileListMaxSize, 0.75f, true);
|
||||
whiteList = new LinkedHashMap<String, Object>(whileListMaxSize, 0.75f, false);
|
||||
}
|
||||
|
||||
whiteList.put(sql, PRESENT);
|
||||
|
||||
@@ -16,7 +16,7 @@ public class TestMockPerf extends TestCase {
|
||||
dataSource.setMinIdle(3);
|
||||
dataSource.setMaxActive(20);
|
||||
dataSource.setDbType("mysql");
|
||||
dataSource.setFilters("stat");
|
||||
dataSource.setFilters("wall");
|
||||
dataSource.init();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user