some small refactors

1. refactor RandomDataSourceSelector related classes
2. fix some testcases
This commit is contained in:
DigitalSonic
2020-02-07 15:17:50 +08:00
parent a48c2fd493
commit 2466ac220f
11 changed files with 105 additions and 27 deletions
@@ -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;
}