提交 2e6af1b8 authored 作者: Thomas Mueller's avatar Thomas Mueller

The LOB storage (when the system property h2.lobInDatabase is set) is now only…

The LOB storage (when the system property h2.lobInDatabase is set) is now only initialized when needed.
上级 003696bf
......@@ -597,9 +597,6 @@ public class Database implements DataHandler {
addDatabaseObject(systemSession, setting);
}
}
if (SysProperties.LOB_IN_DATABASE) {
getLobStorage().init();
}
systemSession.commit(true);
traceSystem.getTrace(Trace.DATABASE).info("opened " + databaseName);
afterWriting();
......@@ -1361,13 +1358,14 @@ public class Database implements DataHandler {
}
update(session, obj);
// remember that this scans only one level deep!
for (int i = 0; list != null && i < list.size(); i++) {
DbObject o = list.get(i);
if (list != null) {
for (DbObject o : list) {
if (o.getCreateSQL() != null) {
update(session, o);
}
}
}
}
/**
* Rename a database object.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论