mirror of
https://github.com/actiontech/dble.git
synced 2026-05-09 07:50:39 -05:00
[inner-1762] fix:no handler (cherry pick)
This commit is contained in:
@@ -549,6 +549,12 @@ public class MySQLConnection extends AbstractConnection implements
|
||||
this.recycler = recycler;
|
||||
}
|
||||
|
||||
public void backendSpecialCleanUp() {
|
||||
isExecuting = false;
|
||||
isRowDataFlowing = false;
|
||||
this.signal();
|
||||
}
|
||||
|
||||
public void signal() {
|
||||
if (recycler != null) {
|
||||
recycler.signal();
|
||||
|
||||
@@ -227,12 +227,11 @@ public class MySQLConnectionHandler extends BackendAsyncHandler {
|
||||
if (session != null && !source.isTesting() && this.source.getLogResponse().compareAndSet(false, true)) {
|
||||
session.setBackendResponseEndTime(this.source);
|
||||
}
|
||||
this.source.setExecuting(false);
|
||||
this.source.setRowDataFlowing(false);
|
||||
this.source.getLogResponse().set(false);
|
||||
this.source.signal();
|
||||
if (responseHandler != null) {
|
||||
responseHandler.rowEofResponse(data, false, source);
|
||||
ResponseHandler respHand = responseHandler;
|
||||
if (respHand != null) {
|
||||
this.source.backendSpecialCleanUp();
|
||||
respHand.rowEofResponse(data, false, source);
|
||||
} else {
|
||||
closeNoHandler();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user