#1648 #1659 change the log flag & change finishNext into finally (#1699)

This commit is contained in:
zhengfang.sun
2020-03-23 10:02:46 +08:00
committed by GitHub
parent 26fd836114
commit d442766f7b
3 changed files with 2 additions and 2 deletions
@@ -109,7 +109,7 @@ public class PhysicalDNPoolSingleWH extends AbstractPhysicalDBPool {
LOGGER.info(hostName + " " + writeSource.getName() + " init success");
}
}
if (initSuccess) {
if (!initSuccess) {
LOGGER.warn(hostName + " init failure");
}
}
@@ -50,6 +50,7 @@ public class SchemaWriteJob implements Runnable {
errorMessage = e.getMessage();
HaConfigManager.getInstance().log("get error from SchemaWriteJob", e);
} finally {
HaConfigManager.getInstance().finishAndNext();
this.signalAll();
}
}
@@ -83,7 +83,6 @@ public final class HaConfigManager {
} else {
HA_LOGGER.info("reloadId changes when try to write the local file,just skip " + reloadIndex.get());
}
finishAndNext();
} finally {
lock.readLock().unlock();
}