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

Improved error message when the .lock.db file modification time is in the future.

上级 24dda83c
...@@ -277,7 +277,9 @@ public class FileLock { ...@@ -277,7 +277,9 @@ public class FileLock {
long last = fs.getLastModified(fileName); long last = fs.getLastModified(fileName);
long dist = System.currentTimeMillis() - last; long dist = System.currentTimeMillis() - last;
if (dist < -TIME_GRANULARITY) { if (dist < -TIME_GRANULARITY) {
throw getExceptionFatal("Lock file modified in the future: dist=" + dist, null); throw getExceptionFatal("Lock file modification time is in the future; " +
"if required please delete the file " + fileName + " manually and retry; " +
"dist=" + dist, null);
} else if (dist > TIME_GRANULARITY) { } else if (dist > TIME_GRANULARITY) {
return; return;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论