未验证 提交 d1f85e02 编写于 作者: Z zhaojun 提交者: GitHub

release cached transaction for BASE transaction type in proxy (#4940)

上级 ea59c7ba
......@@ -246,7 +246,7 @@ public final class BackendConnection implements AutoCloseable {
MasterVisitedManager.clear();
exceptions.addAll(closeResultSets());
exceptions.addAll(closeStatements());
if (!stateHandler.isInTransaction() || forceClose) {
if (!stateHandler.isInTransaction() || forceClose || TransactionType.BASE == transactionType) {
exceptions.addAll(releaseConnections(forceClose));
}
stateHandler.doNotifyIfNecessary();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册