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