[inner-2350] need to deal with npe in performance mode

(cherry picked from commit 8fec828948)
This commit is contained in:
wenyh
2023-09-11 17:57:58 +08:00
committed by wenyh1
parent 902e44ce05
commit a9e3e4b738
2 changed files with 2 additions and 0 deletions
@@ -227,6 +227,7 @@ public class MySQLBackAuthService extends BackendService implements AuthService
if (SystemConfig.getInstance().getUsePerformanceMode() != 1) {
super.doHandle(null);
} else {
if (task == null) return;
if (isHandling.compareAndSet(false, true)) {
DbleServer.getInstance().getConcurrentBackHandlerQueue().offer(task);
}
@@ -23,6 +23,7 @@ public class MySQLCurrentResponseService extends MySQLResponseService {
if (isComplexQuery()) {
super.doHandle(null);
} else {
if (task == null) return;
if (isHandling.compareAndSet(false, true)) {
DbleServer.getInstance().getConcurrentBackHandlerQueue().offer(task);
}