提交 102ff357 authored 作者: Thomas Mueller's avatar Thomas Mueller

Page store bugfix.

上级 4bf8c6d7
......@@ -346,6 +346,7 @@ public class PageDataIndex extends PageIndex implements RowIndex {
private void removeAllRows() throws SQLException {
PageData root = getPage(rootPageId, 0);
store.logUndo(root, root.data);
root.freeChildren();
root = PageDataLeaf.create(this, rootPageId, PageData.ROOT);
store.removeRecord(rootPageId);
......
......@@ -854,7 +854,7 @@ public class PageStore implements CacheWriter {
/**
* Add a page to the free list.
*
* @param page the page
* @param pageId the page id
* @param undo if the undo record must have been written
*/
public void free(int pageId, boolean undo) throws SQLException {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论