Unverified 提交 9ba6f143 authored 作者: Andrei Tokar's avatar Andrei Tokar 提交者: GitHub

Merge pull request #782 from andreitokar/shared_lock_left_behind

Leftover shared lock after release
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论