提交 b300bcb6 authored 作者: Thomas Mueller's avatar Thomas Mueller

The SQL statement "shutdown defag" could corrupt the database if the process was…

The SQL statement "shutdown defag" could corrupt the database if the process was killed while the shutdown was in progress. The same problem could occur when the database setting "defrag_always" was used.
上级 00799d6d
...@@ -538,7 +538,6 @@ public class PageStore implements CacheWriter { ...@@ -538,7 +538,6 @@ public class PageStore implements CacheWriter {
int target = MIN_PAGE_COUNT - 1; int target = MIN_PAGE_COUNT - 1;
int temp = 0; int temp = 0;
for (int i = 0, size = recordedPagesList.size(); i < size; i++) { for (int i = 0, size = recordedPagesList.size(); i < size; i++) {
writeBack();
int source = recordedPagesList.get(i); int source = recordedPagesList.get(i);
Page pageSource = getPage(source); Page pageSource = getPage(source);
if (!pageSource.canMove()) { if (!pageSource.canMove()) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论