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

New experimental system property "h2.modifyOnWrite".

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