提交 9939b788 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Fix commit b02190d5

上级 06332fe1
...@@ -505,13 +505,15 @@ public class RegularTable extends TableBase { ...@@ -505,13 +505,15 @@ public class RegularTable extends TableBase {
} else { } else {
if (lockExclusiveSession == null) { if (lockExclusiveSession == null) {
if (lockMode == Constants.LOCK_MODE_READ_COMMITTED) { if (lockMode == Constants.LOCK_MODE_READ_COMMITTED) {
// READ_COMMITTED: a read lock is acquired, if (!database.isMultiThreaded()) {
// but released immediately after the operation // READ_COMMITTED: a read lock is acquired,
// is complete. // but released immediately after the operation
// When allowing only one thread, no lock is // is complete.
// required. // When allowing only one thread, no lock is
// Row level locks work like read committed. // required.
return true; // Row level locks work like read committed.
return true;
}
} }
if (!lockSharedSessions.containsKey(session)) { if (!lockSharedSessions.containsKey(session)) {
traceLock(session, exclusive, "ok"); traceLock(session, exclusive, "ok");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论