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