Unverified 提交 3b989b35 authored 作者: Andrei Tokar's avatar Andrei Tokar 提交者: GitHub

Merge pull request #1149 from h2database/deadlock-onexit

fix deadlock between OnExitDatabaseCloser.DATABASES and Engine.DATABASES
......@@ -65,8 +65,10 @@ class OnExitDatabaseCloser extends Thread {
}
}
private static synchronized void onShutdown() {
terminated = true;
private static void onShutdown() {
synchronized(OnExitDatabaseCloser.class) {
terminated = true;
}
RuntimeException root = null;
for (Database database : DATABASES.keySet()) {
try {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论