提交 79a16ace authored 作者: Noel Grandin's avatar Noel Grandin

alter sequence doesn't need to use the system session

I can't see why this would be necessary - it's a DDL command, so we're going to call commit() immediately regardless
上级 f5a0407b
......@@ -114,16 +114,7 @@ public class AlterSequence extends SchemaCommand {
Long inc = getLong(increment);
sequence.modify(startValue, min, max, inc);
}
// need to use the system session, so that the update
// can be committed immediately - not committing it
// would keep other transactions from using the sequence
Session sysSession = db.getSystemSession();
synchronized (sysSession) {
synchronized (db) {
db.updateMeta(sysSession, sequence);
sysSession.commit(true);
}
}
db.updateMeta(session, sequence);
return 0;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论