提交 425b21aa authored 作者: Noel Grandin's avatar Noel Grandin

fix infinite loop in FilePathRetryOnInterrupt

reported by Alexander (vraimax2016)
上级 ba74733f
...@@ -21,6 +21,8 @@ Change Log ...@@ -21,6 +21,8 @@ Change Log
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul> <ul>
<li>Fixed bug in FilePathRetryOnInterrupt that caused infinite loop
</li>
<li>PR #389, Handle LocalTime with nanosecond resolution, patch by katzyn <li>PR #389, Handle LocalTime with nanosecond resolution, patch by katzyn
</li> </li>
<li>PR #382, Recover for "page store" H2 breaks LOBs consistency, patch by vitalus <li>PR #382, Recover for "page store" H2 breaks LOBs consistency, patch by vitalus
......
...@@ -179,6 +179,7 @@ class FileRetryOnInterrupt extends FileBase { ...@@ -179,6 +179,7 @@ class FileRetryOnInterrupt extends FileBase {
for (int i = 0;; i++) { for (int i = 0;; i++) {
try { try {
channel.force(metaData); channel.force(metaData);
return;
} catch (IOException e) { } catch (IOException e) {
reopen(i, e); reopen(i, e);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论