提交 7e7ce289 authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting / change log

上级 d3bd6b1d
......@@ -21,6 +21,10 @@ Change Log
<h2>Next Version (unreleased)</h2>
<ul>
<li>A thread deadlock detector (disabled by default) can help
detect and analyze Java level deadlocks.
To enable, set the system property "h2.threadDeadlockDetector" to true.
</li>
<li>MVStore: power failure could corrupt the store, if writes were re-ordered.
</li>
<li>For compatibility with other databases, support for (double and float)
......
......@@ -896,6 +896,11 @@ public class Database implements DataHandler {
return wasLocked;
}
/**
* Unlock the metadata table.
*
* @param session the session
*/
public void unlockMeta(Session session) {
meta.unlock(session);
}
......@@ -2350,6 +2355,13 @@ public class Database implements DataHandler {
return meta == null || meta.isLockedExclusively();
}
/**
* Checks if the system table (containing the catalog) is locked by the
* given session.
*
* @param session the session
* @return true if it is currently locked
*/
public boolean isSysTableLockedBy(Session session) {
return meta == null || meta.isLockedExclusivelyBy(session);
}
......@@ -2781,6 +2793,12 @@ public class Database implements DataHandler {
}
}
/**
* Get the table engine class, loading it if needed.
*
* @param tableEngine the table engine name
* @return the class
*/
public TableEngine getTableEngine(String tableEngine) {
assert Thread.holdsLock(this);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论