提交 e3e6fa9f authored 作者: Owner's avatar Owner

One more lock bug fixed

上级 f4694669
...@@ -5309,6 +5309,7 @@ public class Parser { ...@@ -5309,6 +5309,7 @@ public class Parser {
}else{ }else{
targetSession.removeLocalTempTable(recursiveTable); targetSession.removeLocalTempTable(recursiveTable);
} }
// both removeSchemaObject and removeLocalTempTable hold meta locks
targetSession.getDatabase().unlockMeta(targetSession); targetSession.getDatabase().unlockMeta(targetSession);
} }
} }
...@@ -5403,6 +5404,8 @@ public class Parser { ...@@ -5403,6 +5404,8 @@ public class Parser {
columnTemplateArray, targetSession, columnTemplateArray, targetSession,
false/* assume recursive */, false /* literalsChecked */, true /* isTableExpression */, isPersistent); false/* assume recursive */, false /* literalsChecked */, true /* isTableExpression */, isPersistent);
} }
// both removeSchemaObject and removeLocalTempTable hold meta locks
targetSession.getDatabase().unlockMeta(targetSession);
} }
view.setTableExpression(true); view.setTableExpression(true);
view.setTemporary(!isPersistent); view.setTemporary(!isPersistent);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论