Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
9e771b50
提交
9e771b50
authored
3月 16, 2013
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation.
上级
723696ee
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
41 行增加
和
5 行删除
+41
-5
changelog.html
h2/src/docsrc/html/changelog.html
+3
-2
Session.java
h2/src/main/org/h2/engine/Session.java
+6
-0
TransactionStore.java
h2/src/main/org/h2/mvstore/TransactionStore.java
+12
-2
MVPrimaryIndex.java
h2/src/main/org/h2/mvstore/db/MVPrimaryIndex.java
+6
-0
MVSecondaryIndex.java
h2/src/main/org/h2/mvstore/db/MVSecondaryIndex.java
+6
-0
MVTable.java
h2/src/main/org/h2/mvstore/db/MVTable.java
+6
-0
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+2
-1
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
9e771b50
...
@@ -18,10 +18,11 @@ Change Log
...
@@ -18,10 +18,11 @@ Change Log
<h1>
Change Log
</h1>
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
H2 Console: the session timeout can now be configured using the system property "h2.consoleTimeout".
<ul><li>
</li><li>
H2 Console: the session timeout can now be configured using the system property "h2.consoleTimeout".
</li><li>
Issue 431: Improved compatibility with MySQL: support for
</li><li>
Issue 431: Improved compatibility with MySQL: support for
"ENGINE=InnoDB charset=UTF8" when creating a table.
"ENGINE=InnoDB charset=UTF8" when creating a table.
</li><li>
Issue 249: Improved compatiblity with MySQL in the MySQL mode:
</li><li>
Issue 249: Improved compatib
i
lity with MySQL in the MySQL mode:
now the methods DatabaseMetaData methods stores*Case*Identifiers return the same as MySQL
now the methods DatabaseMetaData methods stores*Case*Identifiers return the same as MySQL
when using the MySQL mode.
when using the MySQL mode.
</li><li>
Issue 434: H2 Console didn't work in the Chrome browser
</li><li>
Issue 434: H2 Console didn't work in the Chrome browser
...
...
h2/src/main/org/h2/engine/Session.java
浏览文件 @
9e771b50
...
@@ -1234,6 +1234,12 @@ public class Session extends SessionWithState {
...
@@ -1234,6 +1234,12 @@ public class Session extends SessionWithState {
return
redoLogBinary
;
return
redoLogBinary
;
}
}
/**
* Get the transaction to use for this session.
*
* @param store the store
* @return the transaction
*/
public
Transaction
getTransaction
(
TransactionStore
store
)
{
public
Transaction
getTransaction
(
TransactionStore
store
)
{
if
(
transaction
==
null
)
{
if
(
transaction
==
null
)
{
transaction
=
store
.
begin
();
transaction
=
store
.
begin
();
...
...
h2/src/main/org/h2/mvstore/TransactionStore.java
浏览文件 @
9e771b50
...
@@ -28,7 +28,7 @@ public class TransactionStore {
...
@@ -28,7 +28,7 @@ public class TransactionStore {
/**
/**
* The persisted map of open transaction.
* The persisted map of open transaction.
* Key: transactionId, value: [ status, name
Ê
].
* Key: transactionId, value: [ status, name
].
*/
*/
final
MVMap
<
Long
,
Object
[]>
openTransactions
;
final
MVMap
<
Long
,
Object
[]>
openTransactions
;
...
@@ -117,7 +117,7 @@ public class TransactionStore {
...
@@ -117,7 +117,7 @@ public class TransactionStore {
* Close the transaction store.
* Close the transaction store.
*/
*/
public
synchronized
void
close
()
{
public
synchronized
void
close
()
{
// to avoid losing transaction ids
(so just cosmetic)
// to avoid losing transaction ids
settings
.
put
(
LAST_TRANSACTION_ID
,
""
+
lastTransactionId
);
settings
.
put
(
LAST_TRANSACTION_ID
,
""
+
lastTransactionId
);
store
.
commit
();
store
.
commit
();
}
}
...
@@ -720,6 +720,7 @@ public class TransactionStore {
...
@@ -720,6 +720,7 @@ public class TransactionStore {
* Get the value for the given key.
* Get the value for the given key.
*
*
* @param key the key
* @param key the key
* @param m the map
* @return the value or null
* @return the value or null
*/
*/
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
...
@@ -755,6 +756,15 @@ public class TransactionStore {
...
@@ -755,6 +756,15 @@ public class TransactionStore {
}
}
}
}
/**
* Open the map to store the data.
*
* @param <A> the key type
* @param <B> the value type
* @param name the map name
* @param builder the builder
* @return the map
*/
public
<
A
,
B
>
MVMap
<
A
,
B
>
openMap
(
String
name
,
Builder
<
A
,
B
>
builder
)
{
public
<
A
,
B
>
MVMap
<
A
,
B
>
openMap
(
String
name
,
Builder
<
A
,
B
>
builder
)
{
int
todo
;
int
todo
;
return
store
.
openMap
(
name
,
builder
);
return
store
.
openMap
(
name
,
builder
);
...
...
h2/src/main/org/h2/mvstore/db/MVPrimaryIndex.java
浏览文件 @
9e771b50
...
@@ -323,6 +323,12 @@ public class MVPrimaryIndex extends BaseIndex {
...
@@ -323,6 +323,12 @@ public class MVPrimaryIndex extends BaseIndex {
return
true
;
return
true
;
}
}
/**
* Get the map to store the data.
*
* @param session the session
* @return the map
*/
MVMap
<
Long
,
Value
[]>
getMap
(
Session
session
)
{
MVMap
<
Long
,
Value
[]>
getMap
(
Session
session
)
{
// return mvTable.getTransaction(session).openMap(name)
// return mvTable.getTransaction(session).openMap(name)
return
map
;
return
map
;
...
...
h2/src/main/org/h2/mvstore/db/MVSecondaryIndex.java
浏览文件 @
9e771b50
...
@@ -296,6 +296,12 @@ public class MVSecondaryIndex extends BaseIndex {
...
@@ -296,6 +296,12 @@ public class MVSecondaryIndex extends BaseIndex {
}
}
/**
* Get the map to store the data.
*
* @param session the session
* @return the map
*/
MVMap
<
Value
[],
Long
>
getMap
(
Session
session
)
{
MVMap
<
Value
[],
Long
>
getMap
(
Session
session
)
{
return
map2
;
return
map2
;
}
}
...
...
h2/src/main/org/h2/mvstore/db/MVTable.java
浏览文件 @
9e771b50
...
@@ -673,6 +673,12 @@ public class MVTable extends TableBase {
...
@@ -673,6 +673,12 @@ public class MVTable extends TableBase {
// ok
// ok
}
}
/**
* Get the transaction to use for this session.
*
* @param session the session
* @return the transaction
*/
Transaction
getTransaction
(
Session
session
)
{
Transaction
getTransaction
(
Session
session
)
{
return
session
.
getTransaction
(
store
);
return
session
.
getTransaction
(
store
);
}
}
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
9e771b50
...
@@ -724,3 +724,4 @@ incompressible distinguished factories throughput vectors tripodi cracking
...
@@ -724,3 +724,4 @@ incompressible distinguished factories throughput vectors tripodi cracking
brown tweak pbkdf sharding ieee galois otterstrom sharded hruda argaul gaul
brown tweak pbkdf sharding ieee galois otterstrom sharded hruda argaul gaul
simo unpredictable overtakes conditionally decreases warned coupled spin
simo unpredictable overtakes conditionally decreases warned coupled spin
unsynchronized reality cores effort slice addleman koskela ville blocking seen
unsynchronized reality cores effort slice addleman koskela ville blocking seen
isam
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论