Unverified 提交 54fa1877 authored 作者: Andrei Tokar's avatar Andrei Tokar 提交者: GitHub

Merge pull request #781 from h2database/locks_left_behind

Locks left behind after commit
...@@ -697,7 +697,6 @@ public class Session extends SessionWithState { ...@@ -697,7 +697,6 @@ public class Session extends SessionWithState {
autoCommitAtTransactionEnd = false; autoCommitAtTransactionEnd = false;
} }
} }
endTransaction();
int rows = getDatabase().getSettings().analyzeSample / 10; int rows = getDatabase().getSettings().analyzeSample / 10;
if (tablesToAnalyze != null) { if (tablesToAnalyze != null) {
...@@ -708,6 +707,8 @@ public class Session extends SessionWithState { ...@@ -708,6 +707,8 @@ public class Session extends SessionWithState {
database.unlockMeta(this); database.unlockMeta(this);
} }
tablesToAnalyze = null; tablesToAnalyze = null;
endTransaction();
} }
private void removeTemporaryLobs(boolean onTimeout) { private void removeTemporaryLobs(boolean onTimeout) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论