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/07/10 15:24:36 UTC

[GitHub] [shardingsphere] zjcnb commented on a diff in pull request #19005: Split status contain rule and support multiple groups of high availability

zjcnb commented on code in PR #19005:
URL: https://github.com/apache/shardingsphere/pull/19005#discussion_r917410881


##########
shardingsphere-features/shardingsphere-db-discovery/shardingsphere-db-discovery-core/src/main/java/org/apache/shardingsphere/dbdiscovery/rule/DatabaseDiscoveryDataSourceRule.java:
##########
@@ -100,6 +101,22 @@ public void changePrimaryDataSourceName(final String primaryDataSourceName) {
         this.primaryDataSourceName = primaryDataSourceName;
     }
     
+    /**
+     *  Get data source.
+     *
+     * @param dataSourceMap data source map
+     * @return data source
+     */
+    public Map<String, DataSource> getDataSourceGroup(final Map<String, DataSource> dataSourceMap) {
+        Map<String, DataSource> result = new HashMap<>(dataSourceMap.size(), 1);
+        for (Map.Entry<String, DataSource> entry : dataSourceMap.entrySet()) {

Review Comment:
   Ok, i 'm adjusted



-- 
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