提交 09d4c1c4 authored 作者: noelgrandin@gmail.com's avatar noelgrandin@gmail.com

don't lock the META table in verifyMetaLocked(), since we're just going to throw…

don't lock the META table in verifyMetaLocked(), since we're just going to throw an exception if it wasn't locked already
上级 b196558d
......@@ -861,7 +861,8 @@ public class Database implements DataHandler {
* @param session the session
*/
public void verifyMetaLocked(Session session) {
if (!lockMeta(session) && lockMode != Constants.LOCK_MODE_OFF) {
if (meta != null && !meta.isLockedExclusivelyBy(session)
&& lockMode != Constants.LOCK_MODE_OFF) {
throw DbException.throwInternalError();
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论