提交 9150f834 authored 作者: Thomas Mueller's avatar Thomas Mueller

SHUTDOWN COMPACT and compacting in general is faster.

上级 f5c6cbe5
......@@ -449,7 +449,8 @@ public class PageStore implements CacheWriter {
for (int x = lastUsed, j = 0; x > MIN_PAGE_COUNT && j < maxMove; x -= blockSize) {
for (int y = x - blockSize + 1; y <= x; y++) {
if (y > MIN_PAGE_COUNT) {
getPage(y);
// ensure the page is in the disk buffer
readPage(y);
}
}
for (int y = x - blockSize + 1; y <= x; y++) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论