mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
ha
This commit is contained in:
@@ -97,6 +97,8 @@ public class HADataSource extends MultiDataSource implements HADataSourceMBean,
|
||||
}
|
||||
|
||||
master.setEnable(value);
|
||||
|
||||
this.computeTotalWeight();
|
||||
}
|
||||
|
||||
public String getMasterUrl() {
|
||||
@@ -153,6 +155,8 @@ public class HADataSource extends MultiDataSource implements HADataSourceMBean,
|
||||
}
|
||||
|
||||
slave.setEnable(value);
|
||||
|
||||
this.computeTotalWeight();
|
||||
}
|
||||
|
||||
public void switchMasterSlave() {
|
||||
|
||||
Reference in New Issue
Block a user