提交 c4009062 authored 作者: Noel Grandin's avatar Noel Grandin

Fix race condition in FILE_LOCK=SOCKET, which could result in the watchdog thread not running

上级 2fe774a1
...@@ -21,6 +21,8 @@ Change Log ...@@ -21,6 +21,8 @@ Change Log
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul> <ul>
<li>Fix race condition in FILE_LOCK=SOCKET, which could result in the watchdog thread not running
</li>
<li>Experimental support for datatype TIMESTAMP WITH TIMEZONE <li>Experimental support for datatype TIMESTAMP WITH TIMEZONE
</li> </li>
<li>Add support for ALTER TABLE ... RENAME CONSTRAINT .. TO ... <li>Add support for ALTER TABLE ... RENAME CONSTRAINT .. TO ...
......
...@@ -439,6 +439,7 @@ public class FileLock implements Runnable { ...@@ -439,6 +439,7 @@ public class FileLock implements Runnable {
return; return;
} }
save(); save();
locked = true;
watchdog = new Thread(this, watchdog = new Thread(this,
"H2 File Lock Watchdog (Socket) " + fileName); "H2 File Lock Watchdog (Socket) " + fileName);
watchdog.setDaemon(true); watchdog.setDaemon(true);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论