提交 96da6283 authored 作者: Thomas Mueller's avatar Thomas Mueller

Opening a large database could fail in theory if the process was killed and then…

Opening a large database could fail in theory if the process was killed and then not fully compacted (because the unique transaction log key was re-used).
上级 f85e917b
...@@ -583,7 +583,7 @@ public class PageStore implements CacheWriter { ...@@ -583,7 +583,7 @@ public class PageStore implements CacheWriter {
// truncate the log // truncate the log
recoveryRunning = true; recoveryRunning = true;
try { try {
setLogFirstPage(0, 0, 0); setLogFirstPage(++logKey, 0, 0);
} finally { } finally {
recoveryRunning = false; recoveryRunning = false;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论