提交 47da2c44 authored 作者: noelgrandin's avatar noelgrandin

fix relatively harmless race condition

上级 8fd3db60
...@@ -86,6 +86,10 @@ public class LobStorageBackend implements LobStorageInterface { ...@@ -86,6 +86,10 @@ public class LobStorageBackend implements LobStorageInterface {
return; return;
} }
synchronized (handler) { synchronized (handler) {
// have to check this again or we might miss an update on another thread
if (init) {
return;
}
conn = handler.getLobConnection(); conn = handler.getLobConnection();
init = true; init = true;
try { try {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论