提交 42102441 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 e3269650
...@@ -156,8 +156,11 @@ public class WriterThread extends Thread { ...@@ -156,8 +156,11 @@ public class WriterThread extends Thread {
} }
// TODO log writer: could also flush the dirty cache when there is // TODO log writer: could also flush the dirty cache when there is
// low activity // low activity
// wait 0 mean wait forever int wait = writeDelay;
int wait = writeDelay > 0 ? writeDelay : 1; if (wait < SysProperties.MIN_WRITE_DELAY) {
// wait 0 mean wait forever, which is not what we want
wait = SysProperties.MIN_WRITE_DELAY;
}
try { try {
Thread.sleep(wait); Thread.sleep(wait);
} catch (InterruptedException e) { } catch (InterruptedException e) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论