You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/05/23 10:24:14 UTC

[GitHub] [shardingsphere] jingshanglu commented on a diff in pull request #17747: Support opengauss route strategy on read write split

jingshanglu commented on code in PR #17747:
URL: https://github.com/apache/shardingsphere/pull/17747#discussion_r879289733


##########
shardingsphere-features/shardingsphere-readwrite-splitting/shardingsphere-readwrite-splitting-core/src/main/java/org/apache/shardingsphere/readwritesplitting/algorithm/loadbalance/RandomReplicaLoadBalanceAlgorithm.java:
##########
@@ -39,6 +40,9 @@ public void init(final Properties props) {
     
     @Override
     public String getDataSource(final String name, final String writeDataSourceName, final List<String> readDataSourceNames) {
+        if (TransactionHolder.isTransaction()) {

Review Comment:
   I think `replica` can express that.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org