提交 991642f0 authored 作者: Thomas Mueller's avatar Thomas Mueller

New lob storage.

上级 40de3268
......@@ -13,7 +13,6 @@ import org.h2.message.DbException;
import org.h2.result.Row;
import org.h2.result.SearchRow;
import org.h2.store.Data;
import org.h2.store.LobStorage;
import org.h2.store.Page;
import org.h2.store.PageStore;
import org.h2.table.Column;
......@@ -253,7 +252,7 @@ public class PageBtreeIndex extends PageIndex {
}
removeAllRows();
if (tableData.getContainsLargeObject()) {
LobStorage.removeAllForTable(database, table.getId());
database.getLobStorage().removeAllForTable(table.getId());
}
tableData.setRowCount(0);
}
......
......@@ -19,7 +19,6 @@ import org.h2.message.DbException;
import org.h2.result.Row;
import org.h2.result.SearchRow;
import org.h2.store.Data;
import org.h2.store.LobStorage;
import org.h2.store.Page;
import org.h2.store.PageStore;
import org.h2.table.Column;
......@@ -347,7 +346,7 @@ public class PageDataIndex extends PageIndex {
store.logTruncate(session, tableData.getId());
removeAllRows();
if (tableData.getContainsLargeObject() && tableData.isPersistData()) {
LobStorage.removeAllForTable(database, table.getId());
database.getLobStorage().removeAllForTable(table.getId());
}
if (database.isMultiVersion()) {
sessionRowCount.clear();
......
......@@ -18,7 +18,6 @@ import org.h2.engine.UndoLogRecord;
import org.h2.message.DbException;
import org.h2.result.Row;
import org.h2.result.SearchRow;
import org.h2.store.LobStorage;
import org.h2.table.Column;
import org.h2.table.IndexColumn;
import org.h2.table.RegularTable;
......@@ -55,7 +54,7 @@ public class ScanIndex extends BaseIndex {
rows = New.arrayList();
firstFree = -1;
if (tableData.getContainsLargeObject() && tableData.isPersistData()) {
LobStorage.removeAllForTable(database, table.getId());
database.getLobStorage().removeAllForTable(table.getId());
}
tableData.setRowCount(0);
rowCount = 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论