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

Page size is a system property (good for testing).

上级 85352ce1
...@@ -30,6 +30,7 @@ import org.h2.Driver; ...@@ -30,6 +30,7 @@ import org.h2.Driver;
import org.h2.command.Parser; import org.h2.command.Parser;
import org.h2.compress.CompressLZF; import org.h2.compress.CompressLZF;
import org.h2.constant.ErrorCode; import org.h2.constant.ErrorCode;
import org.h2.constant.SysProperties;
import org.h2.engine.Constants; import org.h2.engine.Constants;
import org.h2.engine.DbObject; import org.h2.engine.DbObject;
import org.h2.engine.MetaRecord; import org.h2.engine.MetaRecord;
...@@ -833,7 +834,7 @@ public class Recover extends Tool implements DataHandler { ...@@ -833,7 +834,7 @@ public class Recover extends Tool implements DataHandler {
" writeVersion: " + writeVersion + " writeVersion: " + writeVersion +
" readVersion: " + readVersion); " readVersion: " + readVersion);
if (pageSize < PageStore.PAGE_SIZE_MIN || pageSize > PageStore.PAGE_SIZE_MAX) { if (pageSize < PageStore.PAGE_SIZE_MIN || pageSize > PageStore.PAGE_SIZE_MAX) {
pageSize = PageStore.PAGE_SIZE_DEFAULT; pageSize = SysProperties.PAGE_SIZE;
writer.println("-- ERROR: page size; using " + pageSize); writer.println("-- ERROR: page size; using " + pageSize);
} }
int pageCount = (int) (length / pageSize); int pageCount = (int) (length / pageSize);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论