mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
some small refactors
1. refactor RandomDataSourceSelector related classes 2. fix some testcases
This commit is contained in:
@@ -137,6 +137,9 @@ public class HighAvailableDataSource extends WrapperAdapter implements DataSourc
|
||||
if (poolUpdater != null) {
|
||||
poolUpdater.destroy();
|
||||
}
|
||||
if (selector != null) {
|
||||
selector.destroy();
|
||||
}
|
||||
if (dataSourceMap == null || dataSourceMap.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user