mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
ha
This commit is contained in:
@@ -99,7 +99,7 @@ public class HADataSource extends MultiDataSource implements HADataSourceMBean,
|
||||
masterConnectCount.incrementAndGet();
|
||||
}
|
||||
|
||||
if (slave.isEnable()) {
|
||||
if (conn == null && slave.isEnable()) {
|
||||
conn = slave.getConnection();
|
||||
slaveConnectCount.incrementAndGet();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user