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

New experimental system property "h2.modifyOnWrite".

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