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/03/25 09:27:51 UTC

[GitHub] [shardingsphere] magicodex commented on issue #9524: How to configure default datasource for the version of 5.0.0-alpha

magicodex commented on issue #9524:
URL: https://github.com/apache/shardingsphere/issues/9524#issuecomment-1078821535


   > SS has no needs to know which one is default ds, since it will put a single table randomly. All datasources are the `storage`s for SS.
   
   hi, i use ShardingSphere v5.1 and liquibase v4.5.  it randomly select a datasource to create table?
   i don't know why to remove defaultDataSourceName, but some scenarios are not satisfied now. i hope most table default create in the specified database.
   `
   // SingleTableRouteEngine.route0
   RouteUnit routeUnit = rule.getDefaultDataSource().isPresent() // defaultDataSource is null
     ? getDefaultRouteUnit(rule.getDefaultDataSource().get()) 
     : getRandomRouteUnit(rule);
     routeContext.getRouteUnits().add(routeUnit);
   `


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