提交 811e0c49 authored 作者: Noel Grandin's avatar Noel Grandin

vmlens: fix race condition on Session.temporaryResultLobs

上级 bcf19c4a
...@@ -1594,7 +1594,9 @@ public class JdbcConnection extends TraceObject implements Connection, ...@@ -1594,7 +1594,9 @@ public class JdbcConnection extends TraceObject implements Connection,
try { try {
Value v = session.getDataHandler().getLobStorage().createBlob( Value v = session.getDataHandler().getLobStorage().createBlob(
new ByteArrayInputStream(Utils.EMPTY_BYTES), 0); new ByteArrayInputStream(Utils.EMPTY_BYTES), 0);
session.addTemporaryLob(v); synchronized (session) {
session.addTemporaryLob(v);
}
return new JdbcBlob(this, v, id); return new JdbcBlob(this, v, id);
} finally { } finally {
afterWriting(); afterWriting();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论