We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29f7c79 commit 96ae958Copy full SHA for 96ae958
src/main/java/com/actiontech/dble/config/ConfigInitializer.java
@@ -156,7 +156,10 @@ private void selfChecking0() throws ConfigException {
156
private void checkWriteHost() {
157
for (Map.Entry<String, PhysicalDBPool> pool : this.dataHosts.entrySet()) {
158
PhysicalDatasource[] writeSource = pool.getValue().getSources();
159
- if (writeSource != null && writeSource.length != 0 && !writeSource[0].getConfig().isFake()) {
+ if (writeSource != null && writeSource.length != 0) {
160
+ if (writeSource[0].getConfig().isFake() && pool.getValue().getReadSources().isEmpty()) {
161
+ continue;
162
+ }
163
this.dataHostWithoutWH = false;
164
break;
165
}
0 commit comments