提交 0cf61159 authored 作者: Thomas Mueller's avatar Thomas Mueller

Using "runscript" with autocommit disabled could result in a lock timeout on the…

Using "runscript" with autocommit disabled could result in a lock timeout on the internal table "SYS".
上级 38a3055d
......@@ -98,8 +98,8 @@ public class Set extends Prepared {
break;
}
String value = StringUtils.quoteStringSQL(stringValue);
if (!value.equals(database.getCluster()) &&
!value.equals(Constants.CLUSTERING_DISABLED)) {
if (!value.equals(database.getCluster())) {
if (!value.equals(Constants.CLUSTERING_DISABLED)) {
// anybody can disable the cluster
// (if he can't access a cluster node)
session.getUser().checkAdmin();
......@@ -114,6 +114,7 @@ public class Set extends Prepared {
sysSession.commit(true);
}
}
}
break;
}
case SetTypes.COLLATION: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论