[inner-1762] fix:no handler (cherry pick)

This commit is contained in:
wd2365151147
2022-07-01 15:55:17 +08:00
parent ea030e57f3
commit 0787195f7a
2 changed files with 10 additions and 5 deletions
@@ -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();
}