mirror of
https://github.com/actiontech/dble.git
synced 2026-01-06 04:40:17 -06:00
[inner-2350] need to deal with npe in performance mode
(cherry picked from commit 8fec828948)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user