提交 51e494cd authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 d715cba0
...@@ -107,6 +107,9 @@ public class PageInputStream extends InputStream { ...@@ -107,6 +107,9 @@ public class PageInputStream extends InputStream {
remaining = data.getLength(); remaining = data.getLength();
} }
/**
* Set all pages as 'allocated' in the page store.
*/
public void allocateAllPages() throws SQLException { public void allocateAllPages() throws SQLException {
int trunkPage = trunkNext; int trunkPage = trunkNext;
while (trunkPage != 0) { while (trunkPage != 0) {
......
...@@ -512,6 +512,11 @@ public class PageStore implements CacheWriter { ...@@ -512,6 +512,11 @@ public class PageStore implements CacheWriter {
list.free(pageId); list.free(pageId);
} }
/**
* Set the bit of an already allocated page.
*
* @param pageId the page to allocate
*/
void allocatePage(int pageId) throws SQLException { void allocatePage(int pageId) throws SQLException {
PageFreeList list = getFreeList(pageId / freeListPagesPerList); PageFreeList list = getFreeList(pageId / freeListPagesPerList);
list.allocate(pageId); list.allocate(pageId);
......
...@@ -590,4 +590,4 @@ overall httpdocs tigris eclemma separates underscore yajsw she her truncating ...@@ -590,4 +590,4 @@ overall httpdocs tigris eclemma separates underscore yajsw she her truncating
relocating smtps smtp osde joist catching guesses delimiters shortlist sheet relocating smtps smtp osde joist catching guesses delimiters shortlist sheet
rowspan cheat partitioning datepart dreamsource toussi locates fred rowspan cheat partitioning datepart dreamsource toussi locates fred
longnvarchar collate localdb nan bootclasspath bcp retrotranslator iterable longnvarchar collate localdb nan bootclasspath bcp retrotranslator iterable
ops jopr googlegroups fletcher prefer djava ops jopr googlegroups fletcher prefer djava expires
\ No newline at end of file \ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论