fix connecting to b-dbcompatility database core dump when enable_global_syscache is off.

This commit is contained in:
chenxiaobin19
2022-08-02 09:48:14 +08:00
parent 4c4dc36c80
commit 0e6a31d358

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 {