提交 3b138227 authored 作者: Thomas Mueller's avatar Thomas Mueller

New experimental system property "h2.modifyOnWrite".

上级 591a799e
...@@ -251,15 +251,19 @@ public class FileLock implements Runnable { ...@@ -251,15 +251,19 @@ public class FileLock implements Runnable {
* @return the properties * @return the properties
*/ */
public Properties load() { public Properties load() {
try { IOException lastException = null;
Properties p2 = SortedProperties.loadProperties(fileName); for (int i = 0; i < 5; i++) {
if (trace.isDebugEnabled()) { try {
trace.debug("load " + p2); Properties p2 = SortedProperties.loadProperties(fileName);
if (trace.isDebugEnabled()) {
trace.debug("load " + p2);
}
return p2;
} catch (IOException e) {
lastException = e;
} }
return p2;
} catch (IOException e) {
throw getExceptionFatal("Could not load properties " + fileName, e);
} }
throw getExceptionFatal("Could not load properties " + fileName, lastException);
} }
private void waitUntilOld() { private void waitUntilOld() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论