提交 269bfd24 authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation

上级 eda01e44
......@@ -433,9 +433,7 @@ public class RegularTable extends TableBase {
}
if (!force && database.isMultiVersion()) {
// MVCC: update, delete, and insert use a shared lock.
// Select doesn't lock except when using FOR UPDATE and
// the system property h2.selectForUpdateMvcc
// is not enabled
// Select doesn't lock except when using FOR UPDATE
if (exclusive) {
exclusive = false;
} else {
......
......@@ -77,6 +77,7 @@ public class ScriptReader implements Closeable {
/**
* Close the underlying reader.
*/
@Override
public void close() {
try {
reader.close();
......
......@@ -916,6 +916,9 @@ public class StringUtils {
}
// create a new object that is not shared
// (to avoid out of memory if it is a substring of a big String)
// (not longer needed for Java 7 update 6 and newer,
// but the performance overhead is very small for those
// versions where it is not needed)
// NOPMD
s = new String(s);
cache[index] = s;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论