[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 34ad6df660
commit a276e00b40
2 changed files with 2 additions and 0 deletions

View File

@@ -222,6 +222,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);
}

View File

@@ -18,6 +18,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);
}