Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
a87076f0
提交
a87076f0
authored
11月 13, 2014
作者:
noelgrandin@gmail.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Some places in the code were not respecting the value set in the "SET MAX_MEMORY_ROWS x" command
上级
69b907a3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
4 行删除
+5
-4
changelog.html
h2/src/docsrc/html/changelog.html
+2
-1
MVTable.java
h2/src/main/org/h2/mvstore/db/MVTable.java
+2
-2
RegularTable.java
h2/src/main/org/h2/table/RegularTable.java
+1
-1
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
a87076f0
...
@@ -35,7 +35,8 @@ Change Log
...
@@ -35,7 +35,8 @@ Change Log
</li><li>
Issue 581: When running in LOCK_MODE=0,
</li><li>
Issue 581: When running in LOCK_MODE=0,
JdbcDatabaseMetaData#supportsTransactionIsolationLevel(TRANSACTION_READ_UNCOMMITTED)
JdbcDatabaseMetaData#supportsTransactionIsolationLevel(TRANSACTION_READ_UNCOMMITTED)
should return false
should return false
</li><li>
Fix bug which could generate deadlocks when multiple connections accessed the same table.
</li><li>
Fix bug which could generate deadlocks when multiple connections accessed the same table.
</li><li>
Some places in the code were not respecting the value set in the "SET MAX_MEMORY_ROWS x" command
</li></ul>
</li></ul>
<h2>
Version 1.4.182 Beta (2014-10-17)
</h2>
<h2>
Version 1.4.182 Beta (2014-10-17)
</h2>
...
...
h2/src/main/org/h2/mvstore/db/MVTable.java
浏览文件 @
a87076f0
...
@@ -494,7 +494,7 @@ public class MVTable extends TableBase {
...
@@ -494,7 +494,7 @@ public class MVTable extends TableBase {
long
i
=
0
;
long
i
=
0
;
Store
store
=
session
.
getDatabase
().
getMvStore
();
Store
store
=
session
.
getDatabase
().
getMvStore
();
int
bufferSize
=
SysProperties
.
MAX_MEMORY_ROWS
/
2
;
int
bufferSize
=
database
.
getMaxMemoryRows
()
/
2
;
ArrayList
<
Row
>
buffer
=
New
.
arrayList
(
bufferSize
);
ArrayList
<
Row
>
buffer
=
New
.
arrayList
(
bufferSize
);
String
n
=
getName
()
+
":"
+
index
.
getName
();
String
n
=
getName
()
+
":"
+
index
.
getName
();
int
t
=
MathUtils
.
convertLongToInt
(
total
);
int
t
=
MathUtils
.
convertLongToInt
(
total
);
...
@@ -535,7 +535,7 @@ public class MVTable extends TableBase {
...
@@ -535,7 +535,7 @@ public class MVTable extends TableBase {
long
total
=
remaining
;
long
total
=
remaining
;
Cursor
cursor
=
scan
.
find
(
session
,
null
,
null
);
Cursor
cursor
=
scan
.
find
(
session
,
null
,
null
);
long
i
=
0
;
long
i
=
0
;
int
bufferSize
=
(
int
)
Math
.
min
(
total
,
SysProperties
.
MAX_MEMORY_ROWS
);
int
bufferSize
=
(
int
)
Math
.
min
(
total
,
database
.
getMaxMemoryRows
()
);
ArrayList
<
Row
>
buffer
=
New
.
arrayList
(
bufferSize
);
ArrayList
<
Row
>
buffer
=
New
.
arrayList
(
bufferSize
);
String
n
=
getName
()
+
":"
+
index
.
getName
();
String
n
=
getName
()
+
":"
+
index
.
getName
();
int
t
=
MathUtils
.
convertLongToInt
(
total
);
int
t
=
MathUtils
.
convertLongToInt
(
total
);
...
...
h2/src/main/org/h2/table/RegularTable.java
浏览文件 @
a87076f0
...
@@ -264,7 +264,7 @@ public class RegularTable extends TableBase {
...
@@ -264,7 +264,7 @@ public class RegularTable extends TableBase {
long
total
=
remaining
;
long
total
=
remaining
;
Cursor
cursor
=
scan
.
find
(
session
,
null
,
null
);
Cursor
cursor
=
scan
.
find
(
session
,
null
,
null
);
long
i
=
0
;
long
i
=
0
;
int
bufferSize
=
(
int
)
Math
.
min
(
rowCount
,
SysProperties
.
MAX_MEMORY_ROWS
);
int
bufferSize
=
(
int
)
Math
.
min
(
rowCount
,
database
.
getMaxMemoryRows
()
);
ArrayList
<
Row
>
buffer
=
New
.
arrayList
(
bufferSize
);
ArrayList
<
Row
>
buffer
=
New
.
arrayList
(
bufferSize
);
String
n
=
getName
()
+
":"
+
index
.
getName
();
String
n
=
getName
()
+
":"
+
index
.
getName
();
int
t
=
MathUtils
.
convertLongToInt
(
total
);
int
t
=
MathUtils
.
convertLongToInt
(
total
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论