mirror of
https://github.com/actiontech/dble.git
synced 2026-05-20 06:40:41 -05:00
fix: hint does not use sticky connections (#3097)
This commit is contained in:
@@ -160,14 +160,6 @@ public class RWSplitNonBlockingSession extends Session {
|
||||
|
||||
public void executeHint(DbleHintParser.HintInfo hintInfo, int sqlType, String sql, Callback callback) throws SQLException, IOException {
|
||||
RWSplitHandler handler = new RWSplitHandler(rwSplitService, null, callback, true);
|
||||
if (conn != null && !conn.isClosed()) {
|
||||
if (LOGGER.isDebugEnabled()) {
|
||||
LOGGER.debug("select bind conn[id={}]", conn.getId());
|
||||
}
|
||||
handler.execute(conn);
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
PhysicalDbInstance dbInstance = routeRwSplit(hintInfo, sqlType, rwSplitService);
|
||||
if (dbInstance == null) {
|
||||
|
||||
Reference in New Issue
Block a user