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

Fix commit b02190d5

上级 06332fe1
...@@ -505,6 +505,7 @@ public class RegularTable extends TableBase { ...@@ -505,6 +505,7 @@ 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) {
if (!database.isMultiThreaded()) {
// READ_COMMITTED: a read lock is acquired, // READ_COMMITTED: a read lock is acquired,
// but released immediately after the operation // but released immediately after the operation
// is complete. // is complete.
...@@ -513,6 +514,7 @@ public class RegularTable extends TableBase { ...@@ -513,6 +514,7 @@ public class RegularTable extends TableBase {
// Row level locks work like read committed. // Row level locks work like read committed.
return true; return true;
} }
}
if (!lockSharedSessions.containsKey(session)) { if (!lockSharedSessions.containsKey(session)) {
traceLock(session, exclusive, "ok"); traceLock(session, exclusive, "ok");
session.addLock(this); session.addLock(this);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论