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

Fix commit b02190d5

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