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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to