Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
8dbc26d5
提交
8dbc26d5
authored
1月 20, 2014
作者:
noelgrandin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove runFinalize system property, has been dead code for a while
上级
e9383644
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
0 行增加
和
12 行删除
+0
-12
SysProperties.java
h2/src/main/org/h2/constant/SysProperties.java
+0
-6
TestPowerOff.java
h2/src/test/org/h2/test/db/TestPowerOff.java
+0
-2
TestManyJdbcObjects.java
h2/src/test/org/h2/test/jdbc/TestManyJdbcObjects.java
+0
-4
没有找到文件。
h2/src/main/org/h2/constant/SysProperties.java
浏览文件 @
8dbc26d5
...
@@ -287,12 +287,6 @@ public class SysProperties {
...
@@ -287,12 +287,6 @@ public class SysProperties {
*/
*/
public
static
final
String
PREFIX_TEMP_FILE
=
Utils
.
getProperty
(
"h2.prefixTempFile"
,
"h2.temp"
);
public
static
final
String
PREFIX_TEMP_FILE
=
Utils
.
getProperty
(
"h2.prefixTempFile"
,
"h2.temp"
);
/**
* System property <code>h2.runFinalize</code> (default: true).<br />
* Run finalizers to detect unclosed connections.
*/
public
static
boolean
runFinalize
=
Utils
.
getProperty
(
"h2.runFinalize"
,
true
);
/**
/**
* System property <code>h2.serverCachedObjects</code> (default: 64).<br />
* System property <code>h2.serverCachedObjects</code> (default: 64).<br />
* TCP Server: number of cached objects per session.
* TCP Server: number of cached objects per session.
...
...
h2/src/test/org/h2/test/db/TestPowerOff.java
浏览文件 @
8dbc26d5
...
@@ -141,7 +141,6 @@ public class TestPowerOff extends TestBase {
...
@@ -141,7 +141,6 @@ public class TestPowerOff extends TestBase {
}
}
deleteDb
(
dir
,
DB_NAME
);
deleteDb
(
dir
,
DB_NAME
);
Random
random
=
new
Random
(
1
);
Random
random
=
new
Random
(
1
);
SysProperties
.
runFinalize
=
false
;
int
repeat
=
getSize
(
1
,
20
);
int
repeat
=
getSize
(
1
,
20
);
for
(
int
i
=
0
;
i
<
repeat
;
i
++)
{
for
(
int
i
=
0
;
i
<
repeat
;
i
++)
{
Connection
conn
=
getConnection
(
url
);
Connection
conn
=
getConnection
(
url
);
...
@@ -173,7 +172,6 @@ public class TestPowerOff extends TestBase {
...
@@ -173,7 +172,6 @@ public class TestPowerOff extends TestBase {
}
}
}
}
}
}
SysProperties
.
runFinalize
=
true
;
}
}
private
void
testShutdown
()
throws
SQLException
{
private
void
testShutdown
()
throws
SQLException
{
...
...
h2/src/test/org/h2/test/jdbc/TestManyJdbcObjects.java
浏览文件 @
8dbc26d5
...
@@ -61,7 +61,6 @@ public class TestManyJdbcObjects extends TestBase {
...
@@ -61,7 +61,6 @@ public class TestManyJdbcObjects extends TestBase {
// SERVER_CACHED_OBJECTS = 500: connections = 40
// SERVER_CACHED_OBJECTS = 500: connections = 40
// SERVER_CACHED_OBJECTS = 50: connections = 120
// SERVER_CACHED_OBJECTS = 50: connections = 120
deleteDb
(
"manyObjects"
);
deleteDb
(
"manyObjects"
);
SysProperties
.
runFinalize
=
false
;
int
connCount
=
getSize
(
4
,
40
);
int
connCount
=
getSize
(
4
,
40
);
Connection
[]
conn
=
new
Connection
[
connCount
];
Connection
[]
conn
=
new
Connection
[
connCount
];
for
(
int
i
=
0
;
i
<
connCount
;
i
++)
{
for
(
int
i
=
0
;
i
<
connCount
;
i
++)
{
...
@@ -79,12 +78,10 @@ public class TestManyJdbcObjects extends TestBase {
...
@@ -79,12 +78,10 @@ public class TestManyJdbcObjects extends TestBase {
for
(
int
i
=
0
;
i
<
connCount
;
i
++)
{
for
(
int
i
=
0
;
i
<
connCount
;
i
++)
{
conn
[
i
].
close
();
conn
[
i
].
close
();
}
}
SysProperties
.
runFinalize
=
true
;
}
}
private
void
testOneConnectionPrepare
()
throws
SQLException
{
private
void
testOneConnectionPrepare
()
throws
SQLException
{
deleteDb
(
"manyObjects"
);
deleteDb
(
"manyObjects"
);
SysProperties
.
runFinalize
=
false
;
Connection
conn
=
getConnection
(
"manyObjects"
);
Connection
conn
=
getConnection
(
"manyObjects"
);
PreparedStatement
prep
;
PreparedStatement
prep
;
Statement
stat
;
Statement
stat
;
...
@@ -115,7 +112,6 @@ public class TestManyJdbcObjects extends TestBase {
...
@@ -115,7 +112,6 @@ public class TestManyJdbcObjects extends TestBase {
for
(
int
i
=
0
;
i
<
size
;
i
++)
{
for
(
int
i
=
0
;
i
<
size
;
i
++)
{
prep
.
executeQuery
();
prep
.
executeQuery
();
}
}
SysProperties
.
runFinalize
=
true
;
conn
.
close
();
conn
.
close
();
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论