Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
bacab9bc
提交
bacab9bc
authored
9 年前
作者:
Thomas Mueller Graf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation / Tests / Build
上级
966c6c1a
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
26 行增加
和
18 行删除
+26
-18
changelog.html
h2/src/docsrc/html/changelog.html
+3
-2
TestMVStore.java
h2/src/test/org/h2/test/store/TestMVStore.java
+20
-16
CheckTextFiles.java
h2/src/tools/org/h2/build/code/CheckTextFiles.java
+3
-0
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
bacab9bc
...
...
@@ -21,8 +21,9 @@ Change Log
<h2>
Next Version (unreleased)
</h2>
<ul>
<li>
Windows / PageStore storage: the cooperative file locking mechanism
did not always work as expected.
<li>
PageStore storage: the cooperative file locking mechanism
did not always work as expected (with very slow computers).
</li>
<li>
Temporary CLOB and BLOB objects are now removed while the database is open
(and not just when closing the database).
</li>
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/store/TestMVStore.java
浏览文件 @
bacab9bc
...
...
@@ -2031,26 +2031,30 @@ public class TestMVStore extends TestBase {
FileUtils
.
delete
(
fileName
);
MVStore
store
=
new
MVStore
.
Builder
().
cacheSize
(
16
).
fileName
(
fileName
).
open
();
MVMap
<
Integer
,
String
>
map
=
store
.
openMap
(
"test"
);
long
last
=
System
.
currentTimeMillis
();
String
data
=
new
String
(
new
char
[
2500
]).
replace
((
char
)
0
,
'x'
);
for
(
int
i
=
0
;;
i
++)
{
map
.
put
(
i
,
data
);
if
(
i
%
10000
==
0
)
{
store
.
commit
();
long
time
=
System
.
currentTimeMillis
();
if
(
time
-
last
>
2000
)
{
long
mb
=
store
.
getFileStore
().
size
()
/
1024
/
1024
;
trace
(
mb
+
"/4500"
);
if
(
mb
>
4500
)
{
break
;
try
{
MVMap
<
Integer
,
String
>
map
=
store
.
openMap
(
"test"
);
long
last
=
System
.
currentTimeMillis
();
String
data
=
new
String
(
new
char
[
2500
]).
replace
((
char
)
0
,
'x'
);
for
(
int
i
=
0
;;
i
++)
{
map
.
put
(
i
,
data
);
if
(
i
%
10000
==
0
)
{
store
.
commit
();
long
time
=
System
.
currentTimeMillis
();
if
(
time
-
last
>
2000
)
{
long
mb
=
store
.
getFileStore
().
size
()
/
1024
/
1024
;
trace
(
mb
+
"/4500"
);
if
(
mb
>
4500
)
{
break
;
}
last
=
time
;
}
last
=
time
;
}
}
store
.
commit
();
store
.
close
();
}
finally
{
store
.
closeImmediately
();
}
store
.
commit
();
store
.
close
();
FileUtils
.
delete
(
fileName
);
}
...
...
This diff is collapsed.
Click to expand it.
h2/src/tools/org/h2/build/code/CheckTextFiles.java
浏览文件 @
bacab9bc
...
...
@@ -190,6 +190,9 @@ public class CheckTextFiles {
line
++;
int
lineLength
=
i
-
startLinePos
;
if
(
file
.
getName
().
endsWith
(
".java"
))
{
if
(
useCRLF
)
{
lineLength
--;
}
if
(
lineLength
>
MAX_SOURCE_LINE_SIZE
)
{
fail
(
file
,
"line too long: "
+
lineLength
,
line
);
}
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论