mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add a blacklist in HighAvailableDataSource
This commit is contained in:
+1
-1
@@ -102,7 +102,7 @@ public class RandomDataSourceValidateThread implements Runnable {
|
||||
}
|
||||
|
||||
private void maintainBlacklist() {
|
||||
Map<String, DataSource> dataSourceMap = selector.getDataSourceMap();
|
||||
Map<String, DataSource> dataSourceMap = selector.getFullDataSourceMap();
|
||||
for (Map.Entry<String, Integer> e : errorCounts.entrySet()) {
|
||||
DataSource dataSource = dataSourceMap.get(e.getKey());
|
||||
if (e.getValue() <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user