提交 747eff41 authored 作者: Noel Grandin's avatar Noel Grandin

revert my change, caused other unit test failures

上级 64a72cc8
......@@ -938,12 +938,13 @@ public class Session extends SessionWithState {
private void cleanTempTables(boolean closeSession) {
if (localTempTables != null && localTempTables.size() > 0) {
synchronized (database) {
HashMap<String, Table> tempTables = localTempTables;
localTempTables = null;
for (Table table : tempTables.values()) {
Iterator<Table> it = localTempTables.values().iterator();
while (it.hasNext()) {
Table table = it.next();
if (closeSession || table.getOnCommitDrop()) {
modificationId++;
table.setModified();
it.remove();
table.removeChildrenAndResources(this);
if (closeSession) {
// need to commit, otherwise recovery might
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论