mirror of
https://github.com/actiontech/dble.git
synced 2026-05-19 14:19:09 -05:00
heartbeat status (#1635)
This commit is contained in:
@@ -85,7 +85,6 @@ public class MySQLHeartbeat {
|
||||
reentrantLock.lock();
|
||||
try {
|
||||
isStop.compareAndSet(true, false);
|
||||
this.status = OK_STATUS;
|
||||
} finally {
|
||||
reentrantLock.unlock();
|
||||
}
|
||||
@@ -96,6 +95,7 @@ public class MySQLHeartbeat {
|
||||
reentrantLock.lock();
|
||||
try {
|
||||
if (isStop.compareAndSet(false, true)) {
|
||||
this.status = INIT_STATUS;
|
||||
if (!isChecking.get()) {
|
||||
if (detector != null) {
|
||||
detector.quit();
|
||||
|
||||
Reference in New Issue
Block a user