Enternal-ZERO opened a new issue, #23421:
URL: https://github.com/apache/shardingsphere/issues/23421
This is 4.1.0 code
public String route(final SQLStatement sqlStatement) {
if (isMasterRoute(sqlStatement)) {
MasterVisitedManager.setMasterVisited();
return masterSlaveRule.getMasterDataSourceName();
}
...
and in 5.3.0
public String route(final SQLStatementContext<?> sqlStatementContext) {
if (isPrimaryRoute(sqlStatementContext)) {
return rule.getWriteDataSource();
}
....
why remove this feature in 5.x?
it means user should maintain a threadlocal status?and release by usercode?
--
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]