This commit is contained in:
wenshao
2011-12-20 09:54:49 +08:00
parent f47bd5df4c
commit 1d79626981
4 changed files with 38 additions and 8 deletions
@@ -129,9 +129,9 @@ public abstract class MultiDataSource extends DataSourceAdapter implements Multi
for (DataSourceHolder dataSourceHolder : getDataSources().values()) {
boolean isValid = validDataSourceChecker.isValid(dataSourceHolder.getDataSource());
if (!isValid) {
dataSourceHolder.setEnable(false);
dataSourceHolder.setFail(true);
} else {
dataSourceHolder.setEnable(true);
dataSourceHolder.setFail(false);
}
}
}