提交 b69287cb authored 作者: noelgrandin's avatar noelgrandin

very small cleanup

上级 8c27fab0
......@@ -149,8 +149,8 @@ public class ResultTempTable implements ResultExternal {
table.truncate(session);
Database database = session.getDatabase();
synchronized (database) {
Session sysSession = database.getSystemSession();
if (!database.isSysTableLocked()) {
Session sysSession = database.getSystemSession();
// this session may not lock the sys table (except if it already has locked it)
// because it must be committed immediately
// otherwise other threads can not access the sys table.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论