Skip to content

Commit

Permalink
fix lost mgr read datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
junwen12221 committed Dec 16, 2021
1 parent 3eeec62 commit 52edb19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ && canSwitchDataSource()) {
replicaSelector.addWriteDataSource(datasouceName);
replicaSelector.removeReadDataSource(datasouceName);
}else {
replicaSelector.removeReadDataSource(datasouceName);
replicaSelector.addReadDataSource(datasouceName);
replicaSelector.removeWriteDataSource(datasouceName);
}
replicaSelector
Expand Down

0 comments on commit 52edb19

Please sign in to comment.