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

--no commit message

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