Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
5b3d40db
提交
5b3d40db
authored
16 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove unused code
上级
e52e4418
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
0 行增加
和
50 行删除
+0
-50
Database.java
h2/src/main/org/h2/engine/Database.java
+0
-18
MetaRecord.java
h2/src/main/org/h2/engine/MetaRecord.java
+0
-32
没有找到文件。
h2/src/main/org/h2/engine/Database.java
浏览文件 @
5b3d40db
...
...
@@ -64,7 +64,6 @@ import org.h2.util.FileUtils;
import
org.h2.util.IntHashMap
;
import
org.h2.util.NetUtils
;
import
org.h2.util.ObjectArray
;
import
org.h2.util.ObjectUtils
;
import
org.h2.util.SmallLRUCache
;
import
org.h2.util.StringUtils
;
import
org.h2.util.TempFileDeleter
;
...
...
@@ -101,7 +100,6 @@ public class Database implements DataHandler {
private
final
HashMap
userDataTypes
=
new
HashMap
();
private
final
HashMap
aggregates
=
new
HashMap
();
private
final
HashMap
comments
=
new
HashMap
();
private
final
HashMap
databaseObjects
=
new
HashMap
();
private
final
Set
userSessions
=
Collections
.
synchronizedSet
(
new
HashSet
());
private
Session
exclusiveSession
;
...
...
@@ -820,9 +818,6 @@ public class Database implements DataHandler {
session
.
log
(
meta
,
UndoLogRecord
.
INSERT
,
r
);
}
}
if
(
SysProperties
.
PAGE_STORE
&&
id
>
0
)
{
databaseObjects
.
put
(
ObjectUtils
.
getInteger
(
id
),
obj
);
}
}
/**
...
...
@@ -851,9 +846,6 @@ public class Database implements DataHandler {
}
}
}
if
(
SysProperties
.
PAGE_STORE
)
{
databaseObjects
.
remove
(
ObjectUtils
.
getInteger
(
id
));
}
}
private
HashMap
getMap
(
int
type
)
{
...
...
@@ -2349,14 +2341,4 @@ public class Database implements DataHandler {
return
true
;
}
/**
* Get a database object.
*
* @param id the object id
* @return the database object
*/
DbObject
getDbObject
(
int
id
)
{
return
(
DbObject
)
databaseObjects
.
get
(
ObjectUtils
.
getInteger
(
id
));
}
}
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/engine/MetaRecord.java
浏览文件 @
5b3d40db
...
...
@@ -13,7 +13,6 @@ import org.h2.command.Prepared;
import
org.h2.message.Message
;
import
org.h2.message.Trace
;
import
org.h2.result.SearchRow
;
import
org.h2.schema.SchemaObject
;
import
org.h2.util.ObjectArray
;
import
org.h2.value.ValueInt
;
import
org.h2.value.ValueString
;
...
...
@@ -95,37 +94,6 @@ public class MetaRecord {
}
}
/**
* Undo a metadata change.
*
* @param db the database
* @param systemSession the system session
* @param listener the database event listener
*/
void
undo
(
Database
db
,
Session
systemSession
,
DatabaseEventListener
listener
)
throws
SQLException
{
try
{
DbObject
obj
=
db
.
getDbObject
(
id
);
// null if it was already removed
// (a identity sequence is removed when the table is removed)
if
(
obj
!=
null
)
{
if
(
obj
instanceof
SchemaObject
)
{
db
.
removeSchemaObject
(
systemSession
,
(
SchemaObject
)
obj
);
}
else
{
db
.
removeDatabaseObject
(
systemSession
,
obj
);
}
}
}
catch
(
Exception
e
)
{
SQLException
s
=
Message
.
addSQL
(
Message
.
convert
(
e
),
sql
);
db
.
getTrace
(
Trace
.
DATABASE
).
error
(
sql
,
s
);
if
(
listener
!=
null
)
{
listener
.
exceptionThrown
(
s
,
sql
);
// continue startup in this case
}
else
{
throw
s
;
}
}
}
public
int
getId
()
{
return
id
;
}
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论