!1995 修复enable_global_syscache为off时连接B兼容性数据库的core问题

Merge pull request !1995 from chenxiaobin/egs
This commit is contained in:
opengauss-bot
2022-08-02 11:27:51 +00:00
committed by Gitee

View File

@ -7149,7 +7149,11 @@ void LoadSqlPlugin()
if (!u_sess->attr.attr_sql.dolphin) {
/* recheck and load dolphin within lock */
pthread_mutex_lock(&g_instance.loadPluginLock[DB_CMPT_B]);
start_xact_command();
u_sess->attr.attr_sql.dolphin = CheckIfExtensionExists("dolphin");
finish_xact_command();
if (!u_sess->attr.attr_sql.dolphin) {
LoadDolphinIfNeeded();
} else {