提交 773d1840 编写于 作者: S Serge Rider 提交者: GitHub

Merge pull request #9694 from dbeaver/postgredeadlockfix

synchronized deadlock fix

Former-commit-id: a1ad14d7
......@@ -98,11 +98,12 @@ public class JDBCRemoteInstance implements DBSInstance {
return this.metaContext;
}
if (!dataSource.getContainer().getDriver().isEmbedded() && dataSource.getContainer().getPreferenceStore().getBoolean(ModelPreferences.META_SEPARATE_CONNECTION)) {
synchronized (allContexts) {
// FIXME: do not sync expensive operations
//synchronized (allContexts) {
this.metaContext = dataSource.createExecutionContext(this, getMetadataContextName());
this.metaContext.connect(monitor, true, null, null, true);
return this.metaContext;
}
//}
} else {
return this.executionContext;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册