提交 36fd0af5 authored 作者: andrei's avatar andrei

If lock was promoted from shared to exclusive, releasing it later will leave behind shared lock.

上级 b4f16fe3
...@@ -434,6 +434,7 @@ public class MVTable extends TableBase { ...@@ -434,6 +434,7 @@ public class MVTable extends TableBase {
if (database != null) { if (database != null) {
traceLock(s, lockExclusiveSession == s, TraceLockEvent.TRACE_LOCK_UNLOCK, NO_EXTRA_INFO); traceLock(s, lockExclusiveSession == s, TraceLockEvent.TRACE_LOCK_UNLOCK, NO_EXTRA_INFO);
if (lockExclusiveSession == s) { if (lockExclusiveSession == s) {
lockSharedSessions.remove(s);
lockExclusiveSession = null; lockExclusiveSession = null;
if (SysProperties.THREAD_DEADLOCK_DETECTOR) { if (SysProperties.THREAD_DEADLOCK_DETECTOR) {
if (EXCLUSIVE_LOCKS.get() != null) { if (EXCLUSIVE_LOCKS.get() != null) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论